From e9a286f9e7bcf9ff474f6cb1d253cf12217137f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Thu, 24 Mar 2022 13:31:46 +0100 Subject: [PATCH] LibCore: Make EventLoop connect to InspectorServer if requested I regressed this at some point by inverting the condition here. --- Userland/Libraries/LibCore/EventLoop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCore/EventLoop.cpp b/Userland/Libraries/LibCore/EventLoop.cpp index eb1b745294..76ad358f7c 100644 --- a/Userland/Libraries/LibCore/EventLoop.cpp +++ b/Userland/Libraries/LibCore/EventLoop.cpp @@ -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"); }