Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyThread.java
Original file line number Diff line number Diff line change
@@ -1311,7 +1311,7 @@ public Long run(ThreadContext context, Object data) throws InterruptedException

try {
if (millis == 0) {
semaphore.acquire();
semaphore.tryAcquire(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
} else {
semaphore.tryAcquire(millis, TimeUnit.MILLISECONDS);
}

0 comments on commit f48ebd7

Please sign in to comment.