阻塞逻辑修改
This commit is contained in:
parent
06b1bea076
commit
056f15d68b
@ -183,12 +183,14 @@ public abstract class BaseRunContext {
|
|||||||
try {
|
try {
|
||||||
this.countDownLatch.await();
|
this.countDownLatch.await();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
log.error(e.getMessage());
|
log.error(e.getMessage());}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
private void unpause(){
|
private void unpause(){
|
||||||
if (this.countDownLatch!=null) {
|
if (this.countDownLatch!=null) {
|
||||||
this.countDownLatch.countDown();
|
this.countDownLatch.countDown();
|
||||||
|
if (this.countDownLatch.getCount()==0) {
|
||||||
|
this.countDownLatch=null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user