mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
LibIPC: Only run responsiveness timer when there is an event loop
This disables responsiveness detection when an event loop is absent. There are no users which both need this feature but don't have an event loop.
This commit is contained in:
parent
7669441282
commit
0beca84624
1 changed files with 4 additions and 1 deletions
|
@ -105,6 +105,9 @@ ErrorOr<void> ConnectionBase::post_message(MessageBuffer buffer)
|
||||||
dbgln("LibIPC::Connection FIXME Warning, needed {} writes needed to send message of size {}B, this is pretty bad, as it spins on the EventLoop", writes_done, initial_size);
|
dbgln("LibIPC::Connection FIXME Warning, needed {} writes needed to send message of size {}B, this is pretty bad, as it spins on the EventLoop", writes_done, initial_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note: This disables responsiveness detection when an event loop is absent.
|
||||||
|
// There are no users which both need this feature but don't have an event loop.
|
||||||
|
if (Core::EventLoop::has_been_instantiated())
|
||||||
m_responsiveness_timer->start();
|
m_responsiveness_timer->start();
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue