浏览代码

Fix bug of not stopping immediately on CANCEL while PAUSED.

The service threads do not terminate immediately, but, instead
each service thread picks up one more job before terminating,
causing servicing more jobs which are not reported back to portal.
tags/1.0.12
ymlam 3 年前
父节点
当前提交
053483a919
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/main/java/altk/comm/engine/Broadcast.java

+ 2
- 1
src/main/java/altk/comm/engine/Broadcast.java 查看文件

@@ -290,7 +290,7 @@ public abstract class Broadcast
public void run()
{
myLogger.info("Thread starting...");
while (! serviceThreadsShouldStop())
for (;;)
{
if (serviceThreadsShouldPause())
{
@@ -308,6 +308,7 @@ public abstract class Broadcast
}
}
}
if (serviceThreadsShouldStop()) break;
// Get a batch of jobs, if available
myLogger.debug("Looking for jobs");
List<Job> batch = new ArrayList<Job>();


正在加载...
取消
保存