Explorar o código

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

ithewei %!s(int64=2) %!d(string=hai) anos
pai
achega
9e1dc7e26e
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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();
         }
     }