aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/account-wizard.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-01-06 22:49:26 +0100
committerRobin Jarry <robin@jarry.cc>2023-01-06 23:51:58 +0100
commit915b869e3fc6377be114c033763987de612c443c (patch)
tree95a2165a06cbda9ad0d092ac1b3816f50daa52c1 /widgets/account-wizard.go
parent175c1c822084d0f42892729c8e095397bd830966 (diff)
downloadaerc-915b869e3fc6377be114c033763987de612c443c.tar.gz
lint: add missing panic handlers in goroutines
These issues were all reported by the new custom analyzer introduced in previous commit. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'widgets/account-wizard.go')
-rw-r--r--widgets/account-wizard.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go
index 4b948a30..c1d237ef 100644
--- a/widgets/account-wizard.go
+++ b/widgets/account-wizard.go
@@ -20,6 +20,7 @@ import (
"git.sr.ht/~rjarry/aerc/config"
"git.sr.ht/~rjarry/aerc/lib/ui"
+ "git.sr.ht/~rjarry/aerc/log"
)
const (
@@ -144,6 +145,7 @@ func NewAccountWizard(aerc *Aerc) *AccountWizard {
once.Do(func() {
// debounce to ensure pasted passwords are pasted completely
go func() {
+ defer log.PanicHandler()
for !time.Now().After(lastChange.Add(10 * time.Millisecond)) {
<-time.After(10 * time.Millisecond)
}