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/remotes_panel.go | |
parent | 79e59d5460d838203bc79ac86c0ba529305ba2a9 (diff) |
do not put mutexes on state else we might unlock an unlocked mutex
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index 7e321d81f..9d1450003 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -158,8 +158,8 @@ func (gui *Gui) handleFetchRemote(g *gocui.Gui, v *gocui.View) error { } return gui.WithWaitingStatus(gui.Tr.FetchingRemoteStatus, func() error { - gui.State.Mutexes.FetchMutex.Lock() - defer gui.State.Mutexes.FetchMutex.Unlock() + gui.Mutexes.FetchMutex.Lock() + defer gui.Mutexes.FetchMutex.Unlock() // TODO: test this err := gui.GitCommand.FetchRemote(remote.Name, gui.promptUserForCredential) |