修复 流已经关闭后,再次调用关闭流的接口,返回超时

This commit is contained in:
panlinlin
2021-04-16 18:23:13 +08:00
parent 2dacd7d703
commit c5f2aba9b2
3 changed files with 5 additions and 3 deletions

View File

@@ -99,8 +99,8 @@ public class PlayController {
StreamInfo streamInfo = redisCatchStorage.queryPlayByDevice(deviceId, channelId);
if (streamInfo == null) {
RequestMessage msg = new RequestMessage();
msg.setId(DeferredResultHolder.CALLBACK_CMD_PlAY + uuid);
msg.setData("streamId not found");
msg.setId(DeferredResultHolder.CALLBACK_CMD_STOP + uuid);
msg.setData("点播未找到");
resultHolder.invokeResult(msg);
}else {
redisCatchStorage.stopPlay(streamInfo);