LibIPC: Join send thread instead of detaching in ~ConnectionBase()

By doing this we ensure that sending thread won't try to write into a
closed socket.
This commit is contained in:
Aliaksandr Kalenik 2025-04-08 18:09:21 +02:00 committed by Alexander Kalenik
commit 3525467e56
Notes: github-actions[bot] 2025-04-08 19:10:51 +00:00

View file

@ -69,7 +69,7 @@ ConnectionBase::~ConnectionBase()
m_send_queue->running = false;
m_send_queue->condition.signal();
}
m_send_thread->detach();
(void)m_send_thread->join();
}
bool ConnectionBase::is_open() const