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 <robin@jarry.cc>
This commit is contained in:
Robin Jarry 2022-05-23 22:36:56 +02:00
parent 1bac87e804
commit 600913015d
1 changed files with 0 additions and 3 deletions

View File

@ -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
}