Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaskay committed Jul 30, 2020
1 parent 8e5acbe commit 6c23360
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DeferredNode {
}

fun startedOrStarting(): Boolean {
return deferredNode.isCompleted || lock.availablePermits == 0
return deferredNode.isCompleted || lock.availablePermits < 1
}

private val lock = Semaphore(1)
Expand Down

0 comments on commit 6c23360

Please sign in to comment.