diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/HttpSessionController.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Session/HttpSessionController.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/HttpSessionController.cs b/MediaBrowser.Server.Implementations/Session/HttpSessionController.cs index e64121c45..f1d4c3555 100644 --- a/MediaBrowser.Server.Implementations/Session/HttpSessionController.cs +++ b/MediaBrowser.Server.Implementations/Session/HttpSessionController.cs @@ -79,9 +79,12 @@ namespace MediaBrowser.Server.Implementations.Session private void ResetPingTimer() { - var period = TimeSpan.FromSeconds(60); + if (_pingTimer != null) + { + var period = TimeSpan.FromSeconds(60); - _pingTimer.Change(period, period); + _pingTimer.Change(period, period); + } } private Task SendMessage(string name, CancellationToken cancellationToken) |
