(cherry picked from commit d03d0ac9910a709047fd950d9ebc28e9f7385c7c)
@@ -105,6 +105,11 @@
- (void)stopDiscoverer
{
+ if ([NSThread isMainThread]) {
+ [self performSelectorInBackground:@selector(stopDiscoverer) withObject:nil];
+ return;
+ }
+
if (!_mdis) {
_running = NO;
return;