Quellcode durchsuchen

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

Andy Zhuang vor 2 Jahren
Ursprung
Commit
cf8eb2c4f8
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  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();
         }
     }