Revision: 27880
          http://sourceforge.net/p/bibdesk/svn/27880
Author:   hofman
Date:     2022-09-09 14:20:51 +0000 (Fri, 09 Sep 2022)
Log Message:
-----------
don't message the client on the background thread

Modified Paths:
--------------
    trunk/bibdesk/BDSKSharingClient.m

Modified: trunk/bibdesk/BDSKSharingClient.m
===================================================================
--- trunk/bibdesk/BDSKSharingClient.m   2022-09-09 14:07:03 UTC (rev 27879)
+++ trunk/bibdesk/BDSKSharingClient.m   2022-09-09 14:20:51 UTC (rev 27880)
@@ -216,8 +216,11 @@
 // BDSKSharingClient
 - (oneway void)setNeedsUpdate:(BOOL)flag { 
     // don't message the client during cleanup
-    if([self shouldKeepRunning])
-        [client setNeedsUpdate:flag]; 
+    if([self shouldKeepRunning]) {
+        dispatch_async(dispatch_get_main_queue(), ^{
+            [client setNeedsUpdate:flag];
+        });
+    }
 }
 
 - (BOOL)needsAuthentication {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to