diff --git a/server/WebHook.cpp b/server/WebHook.cpp index 471db2ba..244b07a7 100644 --- a/server/WebHook.cpp +++ b/server/WebHook.cpp @@ -336,6 +336,7 @@ void installWebHook(){ //监听播放失败(未找到特定的流)事件 NoticeCenter::Instance().addListener(nullptr,Broadcast::kBroadcastNotFoundStream,[](BroadcastNotFoundStreamArgs){ if(!hook_enable || hook_stream_not_found.empty()){ + closePlayer(); return; } auto body = make_json(args);