imap: block until directory list is fully received

This fixes issues with INBOX mysteriously not being present at times
This commit is contained in:
Drew DeVault 2019-06-14 10:49:31 -04:00
parent 99c363b724
commit fd0265d917
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) {
Error: err,
}, nil)
} else {
<-done
imapw.worker.PostMessage(
&types.Done{types.RespondTo(msg)}, nil)
}