Skip to content

Commit

Permalink
Merge pull request #135 from dmlloyd/hang
Browse files Browse the repository at this point in the history
Fix potential hang when waiting for a cancelled future
  • Loading branch information
dmlloyd authored Sep 20, 2023
2 parents af5efed + 7674f45 commit 9c98943
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/jboss/threads/EnhancedQueueExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -2608,6 +2608,7 @@ public boolean cancel(final boolean mayInterruptIfRunning) {
case ASF_ST_WAITING:
case ASF_ST_SUBMITTED: {
this.state = ASF_ST_CANCELLED;
notifyAll();
return true;
}
case ASF_ST_RUNNING: {
Expand Down

0 comments on commit 9c98943

Please sign in to comment.