mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
6362ec6f3d
commit
3525467e56
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user