TCPServer: check if loop thread is running before waiting for it

This commit is contained in:
SChernykh
2023-05-01 20:13:57 +02:00
parent fcb62894a5
commit 8a222d5e75
2 changed files with 8 additions and 1 deletions

View File

@@ -149,6 +149,7 @@ protected:
int m_defaultBacklog;
uv_thread_t m_loopThread;
std::atomic<bool> m_loopThreadRunning;
static void loop(void* data);