From d940f2e7abe04ce885ea79106ce68e88c9805e86 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 12 May 2022 16:59:37 +1000 Subject: [PATCH] honour context being done --- pkg/gui/gui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 63784ce4..2818e565 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -317,6 +317,8 @@ outer: if errorCount > 0 { select { + case <-ctx.Done(): + return case err := <-errChan: onError(err) continue outer