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