mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibIPC: Disable Notifier before closing socket
Because we're closing a file descriptor, we need to disable any Notifier that is using it so that the EventLoop does not use invalid file descriptors. Fixes #3508
This commit is contained in:
parent
d67553e128
commit
d55e3c4642
Notes:
sideshowbarker
2024-07-19 02:23:00 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/d55e3c46424 Pull-request: https://github.com/SerenityOS/serenity/pull/3509 Issue: https://github.com/SerenityOS/serenity/issues/3508
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ public:
|
|||
|
||||
void shutdown()
|
||||
{
|
||||
m_notifier->close();
|
||||
m_socket->close();
|
||||
die();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue