Skip to content

Commit

Permalink
Merge pull request #216 from tadamski/timeout
Browse files Browse the repository at this point in the history
Invocation timeout quickfix: convert time units before wait() invocation
  • Loading branch information
dmlloyd authored Feb 23, 2017
2 parents 9b859ea + 930f6b2 commit 9c59900
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ Object awaitResponse(final EJBInvocationHandler<?> invocationHandler) throws Exc
} else {
waitStartTime = System.nanoTime();
// we wait for a specific amount of time
lock.wait(remainingWaitTimeout);
lock.wait(TimeUnit.NANOSECONDS.toMillis(remainingWaitTimeout));
}
} catch (InterruptedException e) {
intr = true;
Expand Down

0 comments on commit 9c59900

Please sign in to comment.