From 10e29ce7dd8ca0105684032953411051ed542273 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 5 May 2024 15:18:27 +0200 Subject: [PATCH] Fix deadlock reporting Deadlock reporting broke in e1ceb6892a; since then, it was *off* when running debug builds normally, but *on* when debugging an integration test. Both of which are exactly opposite of what we want. --- pkg/gui/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 4bb910bf2..caa385c3b 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -662,7 +662,7 @@ func (gui *Gui) Run(startArgs appTypes.StartArgs) error { // disable deadlock reporting if we're not running in debug mode, or if // we're debugging an integration test. In this latter case, stopping at // breakpoints and stepping through code can easily take more than 30s. - deadlock.Opts.Disable = !gui.Debug || os.Getenv(components.WAIT_FOR_DEBUGGER_ENV_VAR) == "" + deadlock.Opts.Disable = !gui.Debug || os.Getenv(components.WAIT_FOR_DEBUGGER_ENV_VAR) != "" if err := gui.Config.ReloadUserConfig(); err != nil { return nil