about summary refs log tree commit diff stats
path: root/worker/imap/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap/worker.go')
-rw-r--r--worker/imap/worker.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/worker/imap/worker.go b/worker/imap/worker.go
index 97cd4b0..7525da5 100644
--- a/worker/imap/worker.go
+++ b/worker/imap/worker.go
@@ -4,6 +4,7 @@ import (
 	"git.sr.ht/~sircmpwn/aerc2/worker/types"
 
 	"fmt"
+	"time"
 )
 
 type IMAPWorker struct {
@@ -52,7 +53,7 @@ func (w *IMAPWorker) Run() {
 			fmt.Printf("<= %T\n", msg)
 			w.handleMessage(msg)
 		default:
-			// no-op
+			time.Sleep(100 * time.Millisecond)
 		}
 	}
 }
2' href='#n102'>102 103 104 105 106 107 108 109 110 111 112 113