aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/observer.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap/observer.go')
-rw-r--r--worker/imap/observer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/worker/imap/observer.go b/worker/imap/observer.go
index 448128c7..866fac62 100644
--- a/worker/imap/observer.go
+++ b/worker/imap/observer.go
@@ -140,7 +140,8 @@ func (o *observer) DelayedReconnect() error {
func (o *observer) emit(errMsg string) {
o.log("disconnect done->")
o.worker.PostMessage(&types.Done{
- Message: types.RespondTo(&types.Disconnect{})}, nil)
+ Message: types.RespondTo(&types.Disconnect{}),
+ }, nil)
o.log("connection error->")
o.worker.PostMessage(&types.ConnError{
Error: fmt.Errorf(errMsg),