Skip to content

Commit

Permalink
Merge pull request #17 from livio/bugfix/issue_16
Browse files Browse the repository at this point in the history
Fix Thread lock logic
  • Loading branch information
Robert Henigan authored Sep 30, 2021
2 parents 8bd13ec + 5b09e0b commit 5fdbdfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Taskmaster/src/main/java/com/livio/taskmaster/Taskmaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,8 @@ public void run() {
}

private void alert() {

if (isWaiting) {
synchronized (TASK_THREAD_LOCK) {
synchronized (TASK_THREAD_LOCK) {
if (isWaiting) {
TASK_THREAD_LOCK.notify();
}
}
Expand Down

0 comments on commit 5fdbdfc

Please sign in to comment.