diff --git a/ferocious_renderer.go b/ferocious_renderer.go index 92f9b0aaa3..a734ae2ae5 100644 --- a/ferocious_renderer.go +++ b/ferocious_renderer.go @@ -33,6 +33,8 @@ func newScreenRenderer(w io.Writer, term string) (s *screenRenderer) { // close implements renderer. func (s *screenRenderer) close() (err error) { + s.mu.Lock() + defer s.mu.Unlock() return s.scr.Close() }