mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-02 12:10:53 +08:00
优化stopSendRtp接口返回值
This commit is contained in:
@@ -837,7 +837,9 @@ void installWebApi() {
|
||||
throw ApiRetException("该媒体流不存在", API::OtherFailed);
|
||||
}
|
||||
|
||||
val["result"] = src->stopSendRtp();
|
||||
if (!src->stopSendRtp()) {
|
||||
throw ApiRetException("尚未开始推流,停止失败", API::OtherFailed);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user