diff --git a/src/crypto/verification/Base.js b/src/crypto/verification/Base.js index dbb244f29..8275cfa1b 100644 --- a/src/crypto/verification/Base.js +++ b/src/crypto/verification/Base.js @@ -152,11 +152,11 @@ export default class VerificationBase extends EventEmitter { this._resetTimer(); this._resolveEvent(e); } else { - this._expectedEvent = undefined; const exception = new Error( "Unexpected message: expecting " + this._expectedEvent + " but got " + e.getType(), ); + this._expectedEvent = undefined; if (this._rejectEvent) { const reject = this._rejectEvent; this._rejectEvent = undefined;