mailr13325 - /branches/gui_testing/gui/analyses/execute.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 29, 2011 - 20:13:
Author: bugman
Date: Wed Jun 29 20:13:41 2011
New Revision: 13325

URL: http://svn.gna.org/viewcvs/relax?rev=13325&view=rev
Log:
The execution lock is only unlocked if it was locked in the first place.


Modified:
    branches/gui_testing/gui/analyses/execute.py

Modified: branches/gui_testing/gui/analyses/execute.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/execute.py?rev=13325&r1=13324&r2=13325&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/execute.py (original)
+++ branches/gui_testing/gui/analyses/execute.py Wed Jun 29 20:13:41 2011
@@ -94,8 +94,9 @@
             print_exc()
             print("\n\n")
 
-            # Unlock the execution lock.
-            status.exec_lock.release()
+            # Unlock the execution lock, if needed.
+            if status.exec_lock.locked():
+                status.exec_lock.release()
 
 
     def run_analysis(self):




Related Messages


Powered by MHonArc, Updated Wed Jun 29 20:20:05 2011