fix: mark disposed dispatchers as such (#6051)
This commit is contained in:
parent
bd61f863c4
commit
e9f0f6c894
|
|
@ -91,6 +91,7 @@ export class Dispatcher<Type, Initializer> extends EventEmitter implements chann
|
||||||
|
|
||||||
_dispose() {
|
_dispose() {
|
||||||
assert(!this._disposed);
|
assert(!this._disposed);
|
||||||
|
this._disposed = true;
|
||||||
|
|
||||||
// Clean up from parent and connection.
|
// Clean up from parent and connection.
|
||||||
if (this._parent)
|
if (this._parent)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue