浏览代码

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

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Pierre SAGASPE 10 年之前
父节点
当前提交
9afda9be5d
共有 1 个文件被更改,包括 2 次插入0 次删除
  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