临时提交
This commit is contained in:
@@ -168,7 +168,7 @@ public class RedisRpcController {
|
|||||||
*/
|
*/
|
||||||
public RedisRpcResponse onStreamOnlineEvent(RedisRpcRequest request) {
|
public RedisRpcResponse onStreamOnlineEvent(RedisRpcRequest request) {
|
||||||
StreamInfo streamInfo = JSONObject.parseObject(request.getParam().toString(), StreamInfo.class);
|
StreamInfo streamInfo = JSONObject.parseObject(request.getParam().toString(), StreamInfo.class);
|
||||||
log.info("[redis-rpc] 监听流上线: {}/{}", streamInfo.getApp(), streamInfo.getStream());
|
log.info("[redis-rpc] 监听流信息,等待流上线: {}/{}", streamInfo.getApp(), streamInfo.getStream());
|
||||||
// 查询本级是否有这个流
|
// 查询本级是否有这个流
|
||||||
StreamInfo streamInfoInServer = mediaServerService.getMediaByAppAndStream(streamInfo.getApp(), streamInfo.getStream());
|
StreamInfo streamInfoInServer = mediaServerService.getMediaByAppAndStream(streamInfo.getApp(), streamInfo.getStream());
|
||||||
if (streamInfoInServer != null) {
|
if (streamInfoInServer != null) {
|
||||||
@@ -192,7 +192,6 @@ public class RedisRpcController {
|
|||||||
// 手动发送结果
|
// 手动发送结果
|
||||||
sendResponse(response);
|
sendResponse(response);
|
||||||
hookSubscribe.removeSubscribe(hook);
|
hookSubscribe.removeSubscribe(hook);
|
||||||
|
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user