mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复media命令相关bug
This commit is contained in:
parent
7e770841d1
commit
2f976214ce
@ -45,6 +45,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
EventPollerPool::Instance().getPoller()->async([ini,media,stream,schema,vhost,app,streamid](){
|
||||
if(ini.find("kick") != ini.end()){
|
||||
//踢出源
|
||||
do{
|
||||
@ -68,8 +69,9 @@ public:
|
||||
<< app << "/"
|
||||
<< streamid
|
||||
<< "\r\n";
|
||||
return;
|
||||
}
|
||||
},false);
|
||||
|
||||
|
||||
});
|
||||
}));
|
||||
@ -86,11 +88,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
void installShellCMD(){
|
||||
static onceToken s_token([]() {
|
||||
REGIST_CMD(media);
|
||||
}, nullptr);
|
||||
}
|
||||
|
||||
|
||||
|
@ -25,18 +25,20 @@
|
||||
*/
|
||||
|
||||
#include "ShellSession.h"
|
||||
#include "Common/config.h"
|
||||
#include "Util/CMD.h"
|
||||
#include "Util/onceToken.h"
|
||||
#include "Util/NoticeCenter.h"
|
||||
#include "Common/config.h"
|
||||
#include "ShellCMD.h"
|
||||
using namespace toolkit;
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
extern void installShellCMD();
|
||||
static onceToken s_token([]() {
|
||||
REGIST_CMD(media);
|
||||
}, nullptr);
|
||||
|
||||
ShellSession::ShellSession(const Socket::Ptr &_sock) : TcpSession(_sock) {
|
||||
installShellCMD();
|
||||
pleaseInputUser();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user