mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
do not put mutexes on state else we might unlock an unlocked mutex
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
// never call this on its own, it should only be called from within refreshCommits()
|
||||
func (gui *Gui) refreshStatus() {
|
||||
gui.State.Mutexes.RefreshingStatusMutex.Lock()
|
||||
defer gui.State.Mutexes.RefreshingStatusMutex.Unlock()
|
||||
gui.Mutexes.RefreshingStatusMutex.Lock()
|
||||
defer gui.Mutexes.RefreshingStatusMutex.Unlock()
|
||||
|
||||
currentBranch := gui.currentBranch()
|
||||
if currentBranch == nil {
|
||||
|
||||
Reference in New Issue
Block a user