完善close_stream api错误提示

This commit is contained in:
xiongziliang 2019-05-27 14:15:21 +08:00
parent f563274cda
commit 3f51e9aed2

View File

@ -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";
} }
}); });