Skip to content

Commit

Permalink
Fix close update condition error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhiguo committed Jan 6, 2025
1 parent b108039 commit b27214a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public boolean acquire(int permits, long timeout, TimeUnit timeUnit) {

@Override
public void close() {
if (started.compareAndSet(false, true)) {
if (started.compareAndSet(true, false)) {
doClose();
}
}
Expand Down

0 comments on commit b27214a

Please sign in to comment.