This commit is contained in:
Alexey Kudravtsev
2013-08-07 13:07:03 +04:00
parent 9aa8131e90
commit 244240da53
@@ -83,8 +83,10 @@ public abstract class PassExecutorService implements Disposable {
if (waitForTermination) {
for (Job<Void> job : mySubmittedPasses.values()) {
try {
JobImpl ji = (JobImpl)job;
if (!job.isDone()) ji.waitForTermination();
if (job instanceof JobImpl) {
JobImpl ji = (JobImpl)job;
if (!job.isDone()) ji.waitForTermination();
}
}
catch (Throwable throwable) {
LOG.error(throwable);