aboutsummaryrefslogtreecommitdiff
path: root/worker/imap
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-01-10 08:35:26 -0500
committerDrew DeVault <sir@cmpwn.com>2018-01-10 08:37:09 -0500
commit305446abfd66e85fe2c46cb4a07a3abb9fa809a4 (patch)
tree9cb8421a4f6a7efaa87d7bb3cbadc8d2ddf9e346 /worker/imap
parentb5d5e0dbedee34bd5d3edf13616f055d4f227d36 (diff)
Sleep main and worker loops on idle
Diffstat (limited to 'worker/imap')
-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)
}
}
}