Skip to content

Commit

Permalink
update counter before triggering latch
Browse files Browse the repository at this point in the history
  • Loading branch information
petermd committed Sep 25, 2013
1 parent 6670080 commit dbfc9b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ public void testSchedulingWithDueTime() throws InterruptedException {
@Override
public Subscription call(Scheduler scheduler, String state) {
System.out.println("doing work");
latch.countDown();
counter.incrementAndGet();
latch.countDown();
if (latch.getCount() == 0) {
return Subscriptions.empty();
} else {
Expand Down

0 comments on commit dbfc9b7

Please sign in to comment.