Commit c7a70e9d authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne
Browse files

local network:fix crash when handle refresh is launched without wifi connection


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 5b5ba06a
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
{ {
[_reachability stopNotifier]; [_reachability stopNotifier];
[_ftpNetServiceBrowser stop]; [_ftpNetServiceBrowser stop];
[_PlexNetServiceBrowser stop];
} }
- (void)loadView - (void)loadView
...@@ -341,6 +342,10 @@ ...@@ -341,6 +342,10 @@
-(void)handleRefresh -(void)handleRefresh
{ {
if (_reachability.currentReachabilityStatus != ReachableViaWiFi) {
[_refreshControl endRefreshing];
return;
}
UPnPManager *managerInstance = [UPnPManager GetInstance]; UPnPManager *managerInstance = [UPnPManager GetInstance];
[[managerInstance DB] removeObserver:self]; [[managerInstance DB] removeObserver:self];
[[managerInstance SSDP] stopSSDP]; [[managerInstance SSDP] stopSSDP];
......
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