aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account-wizard.go2
-rw-r--r--widgets/account.go1
2 files changed, 3 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)
}
diff --git a/widgets/account.go b/widgets/account.go
index 73ee32d0..c2b8b8e9 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -463,6 +463,7 @@ func (acct *AccountView) checkMailOnStartup() {
func (acct *AccountView) CheckMailTimer(d time.Duration) {
acct.ticker = time.NewTicker(d)
go func() {
+ defer log.PanicHandler()
for range acct.ticker.C {
if !acct.state.Connected() {
continue