Return the default ping for an empty SyncPlay group

This commit is contained in:
fmarcac committed 2026-09-05 14:24:49 +02:00
1 parent 0c05d9d1a9
commit e356fe9146
1 file changed
+3 -1
@@ -451,7 +451,9 @@ namespace Emby.Server.Implementations.SyncPlay
max = 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 />