mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 14:07:50 +08:00
Merge pull request #1771 from q792602257/patch-1
[BUG] 修复执行录像计划定时任务时,没有录像任务导致的java.util.ConcurrentModificationException
This commit is contained in:
commit
1ead85f05b
@ -89,7 +89,8 @@ public class RecordPlanServiceImpl implements IRecordPlanService {
|
|||||||
if (startChannelIdList.isEmpty()) {
|
if (startChannelIdList.isEmpty()) {
|
||||||
// 当前没有录像任务, 如果存在旧的正在录像的就移除
|
// 当前没有录像任务, 如果存在旧的正在录像的就移除
|
||||||
if(!recordStreamMap.isEmpty()) {
|
if(!recordStreamMap.isEmpty()) {
|
||||||
stopStreams(recordStreamMap.keySet(), recordStreamMap);
|
Set<Integer> recordStreamSet = new HashSet<>(recordStreamMap.keySet());
|
||||||
|
stopStreams(recordStreamSet, recordStreamMap);
|
||||||
recordStreamMap.clear();
|
recordStreamMap.clear();
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user