添加如果流不存在则关闭时候报错
This commit is contained in:
parent
4779c1b1bc
commit
5a569084b8
|
|
@ -186,8 +186,10 @@ public class TaskService implements ITaskService{
|
||||||
for (StreamProcess streamProcess : currentStreamTask.getStreamProcesses()) {
|
for (StreamProcess streamProcess : currentStreamTask.getStreamProcesses()) {
|
||||||
if(!new File(streamProcess.getFileName()).exists()){
|
if(!new File(streamProcess.getFileName()).exists()){
|
||||||
recordSuccess = false;
|
recordSuccess = false;
|
||||||
}
|
logger.error("流录制失败: streamUrl {} taskId {} destroy Process {}", streamUrl,currentStreamTask.getTaskId() ,streamProcess.getInnerProcessId());
|
||||||
|
}else {
|
||||||
logger.info("streamUrl {} taskId {} destroy Process {}", streamUrl,currentStreamTask.getTaskId() ,streamProcess.getInnerProcessId());
|
logger.info("streamUrl {} taskId {} destroy Process {}", streamUrl,currentStreamTask.getTaskId() ,streamProcess.getInnerProcessId());
|
||||||
|
}
|
||||||
streamProcess.destroy();
|
streamProcess.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue