瀏覽代碼

fix: EventLoopThread::stop cannot end when loop_thread is destroyed when app exited (#413)

ithewei 2 年之前
父節點
當前提交
9e1dc7e26e
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      evpp/EventLoopThreadPool.h

+ 1 - 3
evpp/EventLoopThreadPool.h

@@ -115,9 +115,7 @@ public:
         }
 
         if (wait_threads_stopped) {
-            while (!isStopped()) {
-                hv_delay(1);
-            }
+            join();
         }
     }