1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

workaround for #511, the fly stfd in close. 2.0.211

This commit is contained in:
winlin 2016-09-01 16:51:09 +08:00
parent a0890fe06a
commit e2865c6ac1
5 changed files with 12 additions and 10 deletions

View file

@ -225,8 +225,11 @@ int SrsRtmpConn::on_reload_vhost_removed(string vhost)
// if the vhost connected is removed, disconnect the client.
srs_trace("vhost %s removed/disabled, close client url=%s",
vhost.c_str(), req->get_stream_url().c_str());
srs_close_stfd(stfd);
// should never close the fd in another thread,
// one fd should managed by one thread, we should use interrupt instead.
// so we just ignore the vhost enabled event.
//srs_close_stfd(stfd);
return ret;
}