瀏覽代碼

Fix bug of not updating activity count on exception

tags/1.0.25
ymlam 2 年之前
父節點
當前提交
9055d74fc3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/main/java/altk/comm/engine/Broadcast.java

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

@@ -375,12 +375,14 @@ public abstract class Broadcast
{
// Aborting
setState(BroadcastState.ABORTING, e.errorCodeText, e.errorText);
updateServiceActivityCount(-batch.size());
}
catch (Throwable t)
{
// This is unexpected. Log stack trace
myLogger.error("Caught unexpected Throwable", t);
terminate(BroadcastState.ABORTED, t + ": " + t.getMessage());
updateServiceActivityCount(-batch.size());
}
if (sleepBetweenJobs > 0)
{


Loading…
取消
儲存