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
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue