Commit a164e4c4 authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

parent aa299226
......@@ -107,7 +107,7 @@
- (void)applicationDidBecomeActive:(NSNotification *)notification
{
if (_reachability.currentReachabilityStatus == ReachableViaWiFi) {
[self performSelectorInBackground:@selector(_startUPNPDiscovery) withObject:nil];
[self _startUPNPDiscovery];
[self performSelectorInBackground:@selector(_startSAPDiscovery) withObject:nil];
}
}
......@@ -213,7 +213,7 @@
- (void)netReachabilityChanged:(NSNotification *)notification
{
if (_reachability.currentReachabilityStatus == ReachableViaWiFi) {
[self performSelectorInBackground:@selector(_startUPNPDiscovery) withObject:nil];
[self _startUPNPDiscovery];
[self performSelectorInBackground:@selector(_startSAPDiscovery) withObject:nil];
} else {
[self _stopUPNPDiscovery];
......
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