Revision: 22131
          http://sourceforge.net/p/bibdesk/svn/22131
Author:   hofman
Date:     2018-03-19 18:01:42 +0000 (Mon, 19 Mar 2018)
Log Message:
-----------
don't reset shouldKeepRunning after canceling

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

Modified: trunk/bibdesk/BDSKFileSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.m 2018-03-19 17:07:57 UTC (rev 22130)
+++ trunk/bibdesk/BDSKFileSearchIndex.m 2018-03-19 18:01:42 UTC (rev 22131)
@@ -155,13 +155,14 @@
     // clear the queue
     OSAtomicCompareAndSwap32Barrier(1, 0, &flags.shouldKeepRunning);
     dispatch_sync(queue, ^{});
+    
+    if (canceled)
+        return;
+    
     OSAtomicCompareAndSwap32Barrier(0, 1, &flags.shouldKeepRunning);
     
     progressValue = 0.0;
     
-    if (canceled)
-        return;
-    
     dispatch_async(queue, ^{
         [self resetIndexWithItems:items];
     });

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to