be forgiving when dispose has already been called

This commit is contained in:
Bruno Windels 2021-10-28 12:04:42 +02:00
parent 544019f67d
commit c3dfdde626

View file

@ -377,7 +377,7 @@ export class Session {
this._olmWorker = undefined;
this._sessionBackup?.dispose();
this._sessionBackup = undefined;
this._megolmDecryption.dispose();
this._megolmDecryption?.dispose();
this._megolmDecryption = undefined;
this._e2eeAccount?.dispose();
this._e2eeAccount = undefined;