diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-13 20:16:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-13 20:16:55 -0400 |
commit | 026e8a17ca40955652949584388b38566fef66e7 (patch) | |
tree | a6430ec16308dc35ddeb1bc7f381a27124427739 /worker/imap/open.go | |
parent | bb46b2b7e15ba839475973ae44d5a833c6f2b265 (diff) | |
download | aerc-026e8a17ca40955652949584388b38566fef66e7.tar.gz |
Handle incoming emails gracefully
Diffstat (limited to 'worker/imap/open.go')
-rw-r--r-- | worker/imap/open.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/worker/imap/open.go b/worker/imap/open.go index dc5d6d17..ab54e880 100644 --- a/worker/imap/open.go +++ b/worker/imap/open.go @@ -17,6 +17,9 @@ func (imapw *IMAPWorker) handleOpenDirectory(msg *types.OpenDirectory) { }, nil) } else { imapw.worker.PostMessage(&types.Done{types.RespondTo(msg)}, nil) + if imapw.idleStop == nil { + imapw.idleStop = make(chan struct{}) + } } } |