imap: block until directory list is fully received
This fixes issues with INBOX mysteriously not being present at times
This commit is contained in:
parent
99c363b724
commit
fd0265d917
|
@ -46,6 +46,7 @@ func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) {
|
||||||
Error: err,
|
Error: err,
|
||||||
}, nil)
|
}, nil)
|
||||||
} else {
|
} else {
|
||||||
|
<-done
|
||||||
imapw.worker.PostMessage(
|
imapw.worker.PostMessage(
|
||||||
&types.Done{types.RespondTo(msg)}, nil)
|
&types.Done{types.RespondTo(msg)}, nil)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue