Fix deadlock when loadStore posts notifications to the main thread.
This commit is contained in:
		@@ -132,7 +132,9 @@ MP_LIBS_END
 | 
			
		||||
            [self updateConfigKey:note.object];
 | 
			
		||||
        } );
 | 
			
		||||
        PearlAddNotificationObserver( NSUserDefaultsDidChangeNotification, nil, nil, ^(id self, NSNotification *note) {
 | 
			
		||||
            [[NSNotificationCenter defaultCenter] postNotificationName:MPCheckConfigNotification object:nil];
 | 
			
		||||
            PearlMainQueueOperation( ^{
 | 
			
		||||
                [[NSNotificationCenter defaultCenter] postNotificationName:MPCheckConfigNotification object:nil];
 | 
			
		||||
            } );
 | 
			
		||||
        } );
 | 
			
		||||
    }
 | 
			
		||||
    @catch (id exception) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user