fix: mark disposed dispatchers as such (#6051)

This commit is contained in:
Yury Semikhatsky 2021-04-05 11:50:28 -07:00 committed by GitHub
parent bd61f863c4
commit e9f0f6c894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)