mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +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
6362ec6f3d
commit
3525467e56
Notes:
github-actions[bot]
2025-04-08 19:10:51 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 3525467e56
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4276
Reviewed-by: https://github.com/ADKaster
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ ConnectionBase::~ConnectionBase()
|
||||||
m_send_queue->running = false;
|
m_send_queue->running = false;
|
||||||
m_send_queue->condition.signal();
|
m_send_queue->condition.signal();
|
||||||
}
|
}
|
||||||
m_send_thread->detach();
|
(void)m_send_thread->join();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ConnectionBase::is_open() const
|
bool ConnectionBase::is_open() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue