Bläddra i källkod

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

ithewei 2 år sedan
förälder
incheckning
9e1dc7e26e
1 ändrade filer med 1 tillägg och 3 borttagningar
  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();
         }
     }