mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00: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
Notes:
sideshowbarker
2024-07-17 06:35:23 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/0beca84624 Pull-request: https://github.com/SerenityOS/serenity/pull/16054 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/idispatch
1 changed files with 4 additions and 1 deletions
|
@ -105,7 +105,10 @@ 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);
|
||||
}
|
||||
|
||||
m_responsiveness_timer->start();
|
||||
// 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();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue