Skip to content

Commit

Permalink
Fix raft test network exception on wait.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfurmanski committed Feb 8, 2016
1 parent f30b6fa commit 6e65936
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,10 @@ public synchronized void run()
{
MessageContext first = msgQueue.first();
long waitTime = first.atMillis - System.currentTimeMillis();
wait( waitTime );
if( waitTime > 0 )
{
wait( waitTime );
}
}
catch( NoSuchElementException e )
{
Expand Down

0 comments on commit 6e65936

Please sign in to comment.