diff --git a/shared/DaemonComms.m b/shared/DaemonComms.m index 25a432b..b4c64ad 100644 --- a/shared/DaemonComms.m +++ b/shared/DaemonComms.m @@ -70,11 +70,11 @@ -(void)getRules:(BOOL)wait4Change reply:(void (^)(NSDictionary*))reply; }] getRules:wait4Change reply:^(NSDictionary* rules) { //respond with rules - dispatch_async(dispatch_get_main_queue(), ^ + [[NSRunLoop mainRunLoop] performInModes:@[NSDefaultRunLoopMode, NSModalPanelRunLoopMode] block:^ { //respond reply(rules); - }); + }]; }]; return;