fix: avoid data race during app shutdown
This commit is contained in:
parent
34f18b0fbd
commit
b05bc6f98b
@ -670,7 +670,9 @@ func (ui *UI) redrawFromState(state domain.AppState) {
|
||||
|
||||
// Close closes the terminal user interface.
|
||||
func (ui *UI) Close() {
|
||||
ui.app.QueueUpdate(func() {
|
||||
ui.app.Stop()
|
||||
})
|
||||
}
|
||||
|
||||
func (ui *UI) ConfigUpdateFailed(err error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user