mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
完善close_stream api错误提示
This commit is contained in:
parent
f563274cda
commit
3f51e9aed2
@ -350,10 +350,10 @@ void installWebApi() {
|
|||||||
if(src){
|
if(src){
|
||||||
bool flag = src->close();
|
bool flag = src->close();
|
||||||
val["code"] = flag ? 0 : -1;
|
val["code"] = flag ? 0 : -1;
|
||||||
val["msg"] = flag ? "success" : "kick failed";
|
val["msg"] = flag ? "success" : "close failed";
|
||||||
}else{
|
}else{
|
||||||
val["code"] = -2;
|
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