aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/open.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2021-11-01 21:19:17 +0100
committerRobin Jarry <robin@jarry.cc>2021-11-02 11:24:33 +0100
commit4cf0ea2a056708274438189e6eb3a0c805bf4ae1 (patch)
tree04279eb92d4eb8514cbb06ef35ef417b00657cd3 /worker/imap/open.go
parent138977b2ceef2af605f48a5ea9e44c967947561b (diff)
downloadaerc-4cf0ea2a056708274438189e6eb3a0c805bf4ae1.tar.gz
imap: use builtin idle support
go-imap supports IDLE since 1.2.0. Remove dependency to go-imap-idle. Link: https://github.com/emersion/go-imap/commit/ac3f8e195ef1b6d Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap/open.go')
-rw-r--r--worker/imap/open.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/worker/imap/open.go b/worker/imap/open.go
index 891b8a23..0a0d9fea 100644
--- a/worker/imap/open.go
+++ b/worker/imap/open.go
@@ -18,9 +18,6 @@ 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{})
- }
}
}