diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-27 21:57:29 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-27 21:57:29 -0400 |
| commit | 20507355eb045bc8337ca4697e3a8b906feb82be (patch) | |
| tree | 45564868d54fdfc74ca1c5b2baa2ceb31bad369a | |
| parent | c3378d2329fd49d89c33bdf245981182173a5d1d (diff) | |
support sending nav commands
| -rw-r--r-- | MediaBrowser.Dlna/Ssdp/SsdpHandler.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs b/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs index ad7626f32..14643f468 100644 --- a/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs +++ b/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs @@ -372,17 +372,18 @@ namespace MediaBrowser.Dlna.Ssdp return; } + const int initialDelayMs = 3000; var intervalMs = _config.Configuration.DlnaOptions.BlastAliveMessageIntervalSeconds * 1000; lock (_notificationTimerSyncLock) { if (_notificationTimer == null) { - _notificationTimer = new Timer(state => NotifyAll(), null, intervalMs, intervalMs); + _notificationTimer = new Timer(state => NotifyAll(), null, initialDelayMs, intervalMs); } else { - _notificationTimer.Change(intervalMs, intervalMs); + _notificationTimer.Change(initialDelayMs, intervalMs); } } } |
