mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00: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
6b883c5ccb
commit
4c7207db81
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue