From 600913015d23a3d322ac10d6bbfde425e7f68606 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Mon, 23 May 2022 22:36:56 +0200 Subject: [PATCH] fix: "terminal: fix race when closing a terminal" I applied the wrong version of this patch. Link: https://lists.sr.ht/~rjarry/aerc-devel/patches/32482 Signed-off-by: Robin Jarry --- widgets/terminal.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/widgets/terminal.go b/widgets/terminal.go index cd265f6..1d4c1df 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -203,9 +203,6 @@ func (term *Terminal) Close(err error) { } func (term *Terminal) Destroy() { - term.closeMutex.Lock() - defer term.closeMutex.Unlock() - if term.destroyed { return }