RealtimePlumberSchool: Fix wait-for-handoff in finishJob

This commit is contained in:
Gian Merlino 2013-03-24 18:23:17 -07:00
parent e4c8122f9c
commit 3266139774
1 changed files with 3 additions and 1 deletions

View File

@ -328,9 +328,11 @@ public class RealtimePlumberSchool implements PlumberSchool
); );
synchronized (handoffCondition) { synchronized (handoffCondition) {
while (!sinks.isEmpty()) {
handoffCondition.wait(); handoffCondition.wait();
} }
} }
}
catch (InterruptedException e) { catch (InterruptedException e) {
throw Throwables.propagate(e); throw Throwables.propagate(e);
} }