mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
3ffb0980f5
commit
b21f92f97a
12 changed files with 62 additions and 67 deletions
|
@ -79,6 +79,19 @@ void SrsNgExec::on_unpublish()
|
|||
}
|
||||
|
||||
int SrsNgExec::cycle()
|
||||
{
|
||||
int ret = do_cycle();
|
||||
|
||||
std::vector<SrsProcess*>::iterator it;
|
||||
for (it = exec_publishs.begin(); it != exec_publishs.end(); ++it) {
|
||||
SrsProcess* ep = *it;
|
||||
ep->stop();
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int SrsNgExec::do_cycle()
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
|
@ -110,15 +123,6 @@ int SrsNgExec::cycle()
|
|||
return ret;
|
||||
}
|
||||
|
||||
void SrsNgExec::on_thread_stop()
|
||||
{
|
||||
std::vector<SrsProcess*>::iterator it;
|
||||
for (it = exec_publishs.begin(); it != exec_publishs.end(); ++it) {
|
||||
SrsProcess* ep = *it;
|
||||
ep->stop();
|
||||
}
|
||||
}
|
||||
|
||||
int SrsNgExec::parse_exec_publish(SrsRequest* req)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue