1
0
Эх сурвалжийг харах

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

ithewei 2 жил өмнө
parent
commit
9e1dc7e26e

+ 1 - 3
evpp/EventLoopThreadPool.h

@@ -115,9 +115,7 @@ public:
         }
 
         if (wait_threads_stopped) {
-            while (!isStopped()) {
-                hv_delay(1);
-            }
+            join();
         }
     }