Browse Source

local network: fix duplicate name of the dsm discovered on refresh

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Pierre SAGASPE 10 years ago
parent
commit
9afda9be5d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Sources/VLCLocalServerListViewController.m

+ 2 - 0
Sources/VLCLocalServerListViewController.m

@@ -453,6 +453,7 @@
     UPnPManager *managerInstance = [UPnPManager GetInstance];
     [[managerInstance DB] removeObserver:self];
     [[managerInstance SSDP] stopSSDP];
+    [self _stopDSMDiscovery];
 
     //set the title while refreshing
     _refreshControl.attributedTitle = [[NSAttributedString alloc]initWithString:NSLocalizedString(@"LOCAL_SERVER_REFRESH",nil)];
@@ -671,6 +672,7 @@
 - (void)_stopDSMDiscovery
 {
     [_dsmDiscoverer stopDiscoverer];
+    _dsmDiscoverer = nil;
 }
 
 @end