summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commits_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-10-07 21:45:57 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-10-10 00:23:01 +1100
commit795e4da8b8fa08eb2e55cd7587ddba077402e9ad (patch)
tree05d71ef0b00522fad3ac4878bf13a2914f22599d /pkg/gui/commits_panel.go
parent79e59d5460d838203bc79ac86c0ba529305ba2a9 (diff)
do not put mutexes on state else we might unlock an unlocked mutex
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r--pkg/gui/commits_panel.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go
index b5803a6a0..10932c1c8 100644
--- a/pkg/gui/commits_panel.go
+++ b/pkg/gui/commits_panel.go
@@ -110,8 +110,8 @@ func (gui *Gui) refreshCommits() error {
}
func (gui *Gui) refreshCommitsWithLimit() error {
- gui.State.Mutexes.BranchCommitsMutex.Lock()
- defer gui.State.Mutexes.BranchCommitsMutex.Unlock()
+ gui.Mutexes.BranchCommitsMutex.Lock()
+ defer gui.Mutexes.BranchCommitsMutex.Unlock()
builder := commands.NewCommitListBuilder(gui.Log, gui.GitCommand, gui.OSCommand, gui.Tr)
@@ -132,8 +132,8 @@ func (gui *Gui) refreshCommitsWithLimit() error {
}
func (gui *Gui) refreshRebaseCommits() error {
- gui.State.Mutexes.BranchCommitsMutex.Lock()
- defer gui.State.Mutexes.BranchCommitsMutex.Unlock()
+ gui.Mutexes.BranchCommitsMutex.Lock()
+ defer gui.Mutexes.BranchCommitsMutex.Unlock()
builder := commands.NewCommitListBuilder(gui.Log, gui.GitCommand, gui.OSCommand, gui.Tr)