mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-10 23:57:43 +02:00
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.
This commit is contained in:
parent
618fe533f8
commit
10e29ce7dd
@ -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
|
// 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
|
// we're debugging an integration test. In this latter case, stopping at
|
||||||
// breakpoints and stepping through code can easily take more than 30s.
|
// 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 {
|
if err := gui.Config.ReloadUserConfig(); err != nil {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user