瀏覽代碼

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

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

+ 1 - 3
evpp/EventLoopThread.h

@@ -66,9 +66,7 @@ public:
 
         if (wait_thread_stopped) {
             if (hv_gettid() == loop_tid) return;
-            while (!isStopped()) {
-                hv_delay(1);
-            }
+            join();
         }
     }