Commit 196fbfd2 authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

(cherry picked from commit a164e4c4)
parent 87ea80fc
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment