Skip to content

Commit

Permalink
Remove redundant semaphore in PID dialog. Fixes Issue #777.
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Jan 5, 2022
1 parent 55dcc17 commit 24cae44
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/artisanlib/pid_dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,6 @@ def exportrampsoaks(self,_):

def exportrampsoaksJSON(self,filename):
try:
self.aw.qmc.rampSoakSemaphore.acquire(1)
self.saverampsoaks()
rampsoaks = {}
rampsoaks["svLabel"] = self.aw.pidcontrol.svLabel
Expand All @@ -830,9 +829,6 @@ def exportrampsoaksJSON(self,filename):
_, _, exc_tb = sys.exc_info()
self.aw.qmc.adderror((QApplication.translate("Error Message", "Exception:") + " exportrampsoaksJSON(): {0}").format(str(ex)),getattr(exc_tb, 'tb_lineno', '?'))
return False
finally:
if self.aw.qmc.rampSoakSemaphore.available() < 1:
self.aw.qmc.rampSoakSemaphore.release(1)

def saverampsoaks(self):
try:
Expand Down

0 comments on commit 24cae44

Please sign in to comment.