Browse Source

support sending nav commands

Luke Pulverenti 11 years ago
parent
commit
20507355eb
1 changed files with 3 additions and 2 deletions
  1. 3 2
      MediaBrowser.Dlna/Ssdp/SsdpHandler.cs

+ 3 - 2
MediaBrowser.Dlna/Ssdp/SsdpHandler.cs

@@ -372,17 +372,18 @@ namespace MediaBrowser.Dlna.Ssdp
                 return;
                 return;
             }
             }
 
 
+            const int initialDelayMs = 3000;
             var intervalMs = _config.Configuration.DlnaOptions.BlastAliveMessageIntervalSeconds * 1000;
             var intervalMs = _config.Configuration.DlnaOptions.BlastAliveMessageIntervalSeconds * 1000;
 
 
             lock (_notificationTimerSyncLock)
             lock (_notificationTimerSyncLock)
             {
             {
                 if (_notificationTimer == null)
                 if (_notificationTimer == null)
                 {
                 {
-                    _notificationTimer = new Timer(state => NotifyAll(), null, intervalMs, intervalMs);
+                    _notificationTimer = new Timer(state => NotifyAll(), null, initialDelayMs, intervalMs);
                 }
                 }
                 else
                 else
                 {
                 {
-                    _notificationTimer.Change(intervalMs, intervalMs);
+                    _notificationTimer.Change(initialDelayMs, intervalMs);
                 }
                 }
             }
             }
         }
         }