Skip to content

Commit

Permalink
Fix deadlock reporting (#3550)
Browse files Browse the repository at this point in the history
Deadlock reporting broke in e1ceb68 (last September); 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.
  • Loading branch information
stefanhaller committed May 15, 2024
2 parents 618fe53 + 10e29ce commit ac0524f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac0524f

Please sign in to comment.