The Free Software Media System - Server Backend & API
Return the default ping for an empty SyncPlay group
fmarcace356fe9146bb
diff --git a/Emby.Server.Implementations/SyncPlay/Group.cs b/Emby.Server.Implementations/SyncPlay/Group.csindex 38a0018a70..256faffbf4 100644--- a/Emby.Server.Implementations/SyncPlay/Group.cs+++ b/Emby.Server.Implementations/SyncPlay/Group.cs@@ -451,7 +451,9 @@ namespace Emby.Server.Implementations.SyncPlaymax = Math.Max(max, session.Ping);}- return max;+ // A group with no participants has no ping to report. Returning long.MinValue would+ // overflow the callers that scale this value into ticks, so fall back to the default.+ return max == long.MinValue ? DefaultPing : max;}/// <inheritdoc />