mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #78 st joinable thread must be stop by other threads, 0.9.113
This commit is contained in:
parent
6fba0db9b5
commit
0eb9e0af5b
14 changed files with 96 additions and 16 deletions
|
@ -84,7 +84,7 @@ SrsListener::SrsListener(SrsServer* server, SrsListenerType type)
|
|||
_server = server;
|
||||
_type = type;
|
||||
|
||||
pthread = new SrsThread(this, 0);
|
||||
pthread = new SrsThread(this, 0, true);
|
||||
}
|
||||
|
||||
SrsListener::~SrsListener()
|
||||
|
@ -197,7 +197,7 @@ SrsSignalManager::SrsSignalManager(SrsServer* server)
|
|||
|
||||
_server = server;
|
||||
sig_pipe[0] = sig_pipe[1] = -1;
|
||||
pthread = new SrsThread(this, 0);
|
||||
pthread = new SrsThread(this, 0, true);
|
||||
signal_read_stfd = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue