mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
Merge 8f9ead9507
into 8e37cd2f71
This commit is contained in:
commit
139934c7af
1 changed files with 4 additions and 2 deletions
|
@ -46,8 +46,10 @@ ErrorOr<void> ConnectionBase::post_message(MessageBuffer buffer)
|
|||
{
|
||||
// NOTE: If this connection is being shut down, but has not yet been destroyed,
|
||||
// the socket will be closed. Don't try to send more messages.
|
||||
if (!m_transport->is_open())
|
||||
return Error::from_string_literal("Trying to post_message during IPC shutdown");
|
||||
if (!m_transport->is_open()) {
|
||||
dbgln("Trying to post_message during IPC shutdown");
|
||||
return {};
|
||||
}
|
||||
|
||||
MUST(buffer.transfer_message(*m_transport));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue