mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-08 21:56:19 +02:00
No-op on dispose call instead of throwing error
This commit is contained in:
parent
d86dcb1b7b
commit
4caf52abf3
@ -26,7 +26,7 @@ export class Disposables {
|
||||
* Relinquish all tracked disposable values
|
||||
*/
|
||||
public dispose(): void {
|
||||
this.throwIfDisposed();
|
||||
if (this.isDisposed) return;
|
||||
this._isDisposed = true;
|
||||
for (const disposable of this.disposables) {
|
||||
if (typeof disposable === "function") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user