兼容 不标准的 recordInfo 协议

This commit is contained in:
zxb 2023-08-29 17:25:56 +08:00
parent 8c559a8de1
commit 1f07304e80

View File

@ -163,9 +163,10 @@ public class RecordInfoResponseMessageHandler extends SIPRequestProcessorParent
recordItems.addAll(recordList);
recordListMap.put(resKey, recordItems);
logger.info("{}/{}", count.get(), sumNum);
if (count.get() < sumNum) {
return;
} else {
// if (count.get() < sumNum) {
// return;
// } else {
// 不管有没有拿全 超过 时间间隔就直接返回
Optional.ofNullable(scheduleMap.get(resKey)).ifPresent(scheduledFuture -> {
scheduleMap.remove(resKey);
scheduledFuture.cancel(true);
@ -180,7 +181,7 @@ public class RecordInfoResponseMessageHandler extends SIPRequestProcessorParent
releaseRequest(device.getDeviceId(), sn,recordInfo);
}, 500, TimeUnit.MILLISECONDS);
scheduleMap.put(resKey,schedule);
}
// }
}
}
} catch (Exception e) {