From 795e4da8b8fa08eb2e55cd7587ddba077402e9ad Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 7 Oct 2020 21:45:57 +1100 Subject: do not put mutexes on state else we might unlock an unlocked mutex --- pkg/gui/remotes_panel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/gui/remotes_panel.go') 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) -- cgit v1.2.3