mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
完善close_stream api错误提示
This commit is contained in:
parent
f563274cda
commit
3f51e9aed2
@ -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";
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user