Skip to content

Commit

Permalink
🐛 fix statusscreen race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
capossele committed Aug 6, 2019
1 parent f8c0ebf commit b9905b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/statusscreen/statusscreen.go
Expand Up @@ -91,9 +91,9 @@ func run(plugin *node.Plugin) {
return event
})

mutex.RLock()
defer mutex.RUnlock()
app.SetBeforeDrawFunc(func(screen tcell.Screen) bool {
mutex.RLock()
defer mutex.RUnlock()
headerBar.Update()

rows := make([]int, 2)
Expand Down

0 comments on commit b9905b8

Please sign in to comment.