mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #820, modules use service only.
This commit is contained in:
parent
ff822b55cd
commit
e3526c0cf6
34 changed files with 3061 additions and 2620 deletions
|
@ -83,10 +83,12 @@ int SrsAppCasterFlv::on_tcp_client(st_netfd_t stfd)
|
|||
return ret;
|
||||
}
|
||||
|
||||
void SrsAppCasterFlv::remove(SrsConnection* c)
|
||||
void SrsAppCasterFlv::remove(ISrsConnection* c)
|
||||
{
|
||||
SrsConnection* conn = dynamic_cast<SrsConnection*>(c);
|
||||
|
||||
std::vector<SrsHttpConn*>::iterator it;
|
||||
if ((it = std::find(conns.begin(), conns.end(), c)) != conns.end()) {
|
||||
if ((it = std::find(conns.begin(), conns.end(), conn)) != conns.end()) {
|
||||
conns.erase(it);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue