修正 ffmpeg 失败时 任务数计数

This commit is contained in:
shikong 2024-01-24 11:42:10 +08:00
parent c280b5f40d
commit 512617bdb2

View File

@ -581,6 +581,8 @@ public class DeviceProxyService {
@Override @Override
public void onProcessFailed(ExecuteException e) { public void onProcessFailed(ExecuteException e) {
hasResult = true; hasResult = true;
int num = taskNum.decrementAndGet();
log.info("当前任务数 {}", num);
log.error("ffmpeg 执行失败", e); log.error("ffmpeg 执行失败", e);
close(); close();
} }