mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibCore: Make EventLoop connect to InspectorServer if requested
I regressed this at some point by inverting the condition here.
This commit is contained in:
parent
bd44d9d641
commit
e9a286f9e7
Notes:
sideshowbarker
2024-07-17 16:46:41 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/e9a286f9e7 Pull-request: https://github.com/SerenityOS/serenity/pull/13228
@ -333,7 +333,7 @@ EventLoop::EventLoop([[maybe_unused]] MakeInspectable make_inspectable)
|
|||||||
if (getuid() != 0
|
if (getuid() != 0
|
||||||
&& make_inspectable == MakeInspectable::Yes
|
&& make_inspectable == MakeInspectable::Yes
|
||||||
// FIXME: Deadlock potential; though the main loop and inspector server connection are rarely used in conjunction
|
// FIXME: Deadlock potential; though the main loop and inspector server connection are rarely used in conjunction
|
||||||
&& s_inspector_server_connection.with_locked([](auto inspector_server_connection) { return inspector_server_connection; })) {
|
&& !s_inspector_server_connection.with_locked([](auto inspector_server_connection) { return inspector_server_connection; })) {
|
||||||
if (!connect_to_inspector_server())
|
if (!connect_to_inspector_server())
|
||||||
dbgln("Core::EventLoop: Failed to connect to InspectorServer");
|
dbgln("Core::EventLoop: Failed to connect to InspectorServer");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user