tufang14

srs reusable thread need join

@@ -235,7 +235,7 @@ namespace internal { @@ -235,7 +235,7 @@ namespace internal {
235 // when thread terminated normally, also disposed. 235 // when thread terminated normally, also disposed.
236 // we must set to disposed before the on_thread_stop, which may free the thread. 236 // we must set to disposed before the on_thread_stop, which may free the thread.
237 // @see https://github.com/ossrs/srs/issues/546 237 // @see https://github.com/ossrs/srs/issues/546
238 - disposed = true; 238 + // disposed = true;
239 239
240 handler->on_thread_stop(); 240 handler->on_thread_stop();
241 srs_info("thread %s cycle finished", _name); 241 srs_info("thread %s cycle finished", _name);