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):