diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-07 21:45:57 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-10 00:23:01 +1100 |
commit | 795e4da8b8fa08eb2e55cd7587ddba077402e9ad (patch) | |
tree | 05d71ef0b00522fad3ac4878bf13a2914f22599d /pkg/gui/global_handlers.go | |
parent | 79e59d5460d838203bc79ac86c0ba529305ba2a9 (diff) |
do not put mutexes on state else we might unlock an unlocked mutex
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r-- | pkg/gui/global_handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go index 6c344cdbd..d87f7a77b 100644 --- a/pkg/gui/global_handlers.go +++ b/pkg/gui/global_handlers.go @@ -164,8 +164,8 @@ func (gui *Gui) handleInfoClick(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) fetch(canPromptForCredentials bool) (err error) { - gui.State.Mutexes.FetchMutex.Lock() - defer gui.State.Mutexes.FetchMutex.Unlock() + gui.Mutexes.FetchMutex.Lock() + defer gui.Mutexes.FetchMutex.Unlock() fetchOpts := commands.FetchOptions{} if canPromptForCredentials { |