Browse Source

local network: don't discover stuff on the background thread

(cherry picked from commit a164e4c4d22e2a5e656fcb931a1ef25b476fcdfd)
Felix Paul Kühne 10 years ago
parent
commit
196fbfd215
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/VLCLocalServerListViewController.m

+ 2 - 2
Sources/VLCLocalServerListViewController.m

@@ -109,7 +109,7 @@
 - (void)applicationDidBecomeActive:(NSNotification *)notification
 {
     if (_reachability.currentReachabilityStatus == ReachableViaWiFi) {
-        [self performSelectorInBackground:@selector(_startUPNPDiscovery) withObject:nil];
+        [self _startUPNPDiscovery];
         [self performSelectorInBackground:@selector(_startSAPDiscovery) withObject:nil];
         [self performSelectorInBackground:@selector(_startDSMDiscovery) withObject:nil];
     }
@@ -216,7 +216,7 @@
 - (void)netReachabilityChanged:(NSNotification *)notification
 {
     if (_reachability.currentReachabilityStatus == ReachableViaWiFi) {
-        [self performSelectorInBackground:@selector(_startUPNPDiscovery) withObject:nil];
+        [self _startUPNPDiscovery];
         [self performSelectorInBackground:@selector(_startSAPDiscovery) withObject:nil];
         [self performSelectorInBackground:@selector(_startDSMDiscovery) withObject:nil];
     } else {