소스 검색

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();
         }
     }