1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00: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:
kleines Filmröllchen 2022-03-24 13:31:46 +01:00 committed by Andreas Kling
parent bd44d9d641
commit e9a286f9e7

View file

@ -333,7 +333,7 @@ EventLoop::EventLoop([[maybe_unused]] MakeInspectable make_inspectable)
if (getuid() != 0
&& make_inspectable == MakeInspectable::Yes
// 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())
dbgln("Core::EventLoop: Failed to connect to InspectorServer");
}