Skip to content

Commit

Permalink
Merge pull request #2646 from SCADA-LTS/fix/#2634_Fix_possible_Unrele…
Browse files Browse the repository at this point in the history
…ased_lock

#2634 Fix possible Unreleased lock - Lock outside the try block
  • Loading branch information
Limraj authored Aug 7, 2023
2 parents b5c37ab + ba74234 commit a936ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/serotonin/timer/TimerTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public boolean cancel() {
boolean result = (state == SCHEDULED);

if (completeBeforeCancel) {
cancelLock.writeLock().lock();
try {
cancelLock.writeLock().lock();
state = CANCELLED;
}
finally {
Expand Down

0 comments on commit a936ae4

Please sign in to comment.