Return the default ping for an empty SyncPlay group

This commit is contained in:
fmarcac
2026-09-05 14:20:26 +02:00
parent 0c05d9d1a9
commit e356fe9146
@@ -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 />