[iso-core] imap-connection properly resolves this

This commit is contained in:
Evan Morikawa 2017-02-28 10:57:29 -08:00
parent 875fac3227
commit 2126060d27

View file

@ -129,7 +129,7 @@ class IMAPConnection extends EventEmitter {
try {
this._resolvedSettings = await IMAPConnection.asyncResolveIMAPSettings(this._baseSettings)
await this._buildUnderlyingConnection()
resolve()
resolve(this)
} catch (err) {
reject(err)
}