From ea0550121e6a7f8feef0aa3eb9e9e78d2650d7d8 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 30 Jul 2021 11:25:00 -0400 Subject: [PATCH] Don't close the msgs channel on shutdown --- tea.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/tea.go b/tea.go index f32e82f..9ca95bd 100644 --- a/tea.go +++ b/tea.go @@ -481,8 +481,6 @@ func (p *Program) shutdown(kill bool) { p.renderer.stop() } close(p.done) - close(p.msgs) - p.msgs = nil p.ExitAltScreen() p.DisableMouseCellMotion() p.DisableMouseAllMotion()