diff options
| author | fmarcac <188743521+fmarcac@users.noreply.github.com> | 2026-09-05 14:20:26 +0200 |
|---|---|---|
| committer | fmarcac <188743521+fmarcac@users.noreply.github.com> | 2026-09-05 14:24:49 +0200 |
| commit | e356fe9146bb4c62226e9c5108bfa9bf17171f68 (patch) | |
| tree | d6cae420efaf76382d3c5e635195ad6711fa20da | |
| parent | 0c05d9d1a97ccf77571c7cffd39314c5cf3ad4e6 (diff) | |
Return the default ping for an empty SyncPlay group
| -rw-r--r-- | Emby.Server.Implementations/SyncPlay/Group.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/SyncPlay/Group.cs b/Emby.Server.Implementations/SyncPlay/Group.cs index 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.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 /> |
