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
parent 6b883c5ccb
commit 4c7207db81

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