Skip to content

Commit

Permalink
perform on main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
rossetantoine committed Oct 18, 2016
1 parent 515b13d commit 37c0c54
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion XML-RPC-Plugin/xmlrpcFilter.m
Expand Up @@ -31,6 +31,12 @@ - (void) initPlugin

- (void) OsiriXXMLRPCMessage: (NSNotification*) note
{
if( [NSThread isMainThread] == NO)
{
[self performSelectorOnMainThread:@selector(OsiriXXMLRPCMessage:) withObject: note waitUntilDone: YES];
return;
}

@try
{
NSMutableDictionary *httpServerMessage = [note object];
Expand Down Expand Up @@ -218,4 +224,4 @@ - (long) filterImage : (NSString*) menuName
return 0;
}

@end
@end

0 comments on commit 37c0c54

Please sign in to comment.