Commit 96f90302 authored by Tobias's avatar Tobias
Browse files

fix exception due to delegate call which triggers layout in background

parent 7c779c11
......@@ -114,8 +114,10 @@
if ([self.resolvedLocalNetworkServices vlc_indexOfServiceWithNetService:localNetworkService.netService] != NSNotFound) {
return;
}
[self.resolvedLocalNetworkServices addObject:localNetworkService];
[self.delegate localNetworkServiceBrowserDidUpdateServices:self];
dispatch_sync(dispatch_get_main_queue(), ^{
[self.resolvedLocalNetworkServices addObject:localNetworkService];
[self.delegate localNetworkServiceBrowserDidUpdateServices:self];
});
}
@end
......
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