mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-18 12:00:54 +08:00
完善close_stream api错误提示
This commit is contained in:
@@ -350,10 +350,10 @@ void installWebApi() {
|
||||
if(src){
|
||||
bool flag = src->close();
|
||||
val["code"] = flag ? 0 : -1;
|
||||
val["msg"] = flag ? "success" : "kick failed";
|
||||
val["msg"] = flag ? "success" : "close failed";
|
||||
}else{
|
||||
val["code"] = -2;
|
||||
val["msg"] = "can not find the pusher";
|
||||
val["msg"] = "can not find the stream";
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user