fix: avoid data race during app shutdown

This commit is contained in:
Rob Watson 2025-04-01 19:18:21 +02:00
parent 34f18b0fbd
commit b05bc6f98b

View File

@ -670,7 +670,9 @@ func (ui *UI) redrawFromState(state domain.AppState) {
// Close closes the terminal user interface.
func (ui *UI) Close() {
ui.app.Stop()
ui.app.QueueUpdate(func() {
ui.app.Stop()
})
}
func (ui *UI) ConfigUpdateFailed(err error) {