Selaa lähdekoodia

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

ithewei 2 vuotta sitten
vanhempi
commit
9e1dc7e26e
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  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();
         }
     }