Ver código fonte

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

Andy Zhuang 2 anos atrás
pai
commit
cf8eb2c4f8
1 arquivos alterados com 1 adições e 3 exclusões
  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();
         }
     }