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,7 +328,9 @@ public class RealtimePlumberSchool implements PlumberSchool
); );
synchronized (handoffCondition) { synchronized (handoffCondition) {
handoffCondition.wait(); while (!sinks.isEmpty()) {
handoffCondition.wait();
}
} }
} }
catch (InterruptedException e) { catch (InterruptedException e) {