mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
client connection no disconnect
This commit is contained in:
parent
9b8f6ff962
commit
1e34d2a5cd
5 changed files with 38 additions and 2 deletions
8
trunk/src/app/srs_app_source.cpp
Normal file → Executable file
8
trunk/src/app/srs_app_source.cpp
Normal file → Executable file
|
@ -515,6 +515,14 @@ void SrsConsumer::wait(int nb_msgs, int duration)
|
|||
// use cond block wait for high performance mode.
|
||||
st_cond_wait(mw_wait);
|
||||
}
|
||||
|
||||
void SrsConsumer::on_dispose()
|
||||
{
|
||||
if (mw_waiting) {
|
||||
st_cond_signal(mw_wait);
|
||||
mw_waiting = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
int SrsConsumer::on_play_client_pause(bool is_pause)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue