Skip to content

Commit

Permalink
fix: mark disposed dispatchers as such (#6051)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Apr 5, 2021
1 parent bd61f86 commit e9f0f6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dispatchers/dispatcher.ts
Expand Up @@ -91,6 +91,7 @@ export class Dispatcher<Type, Initializer> extends EventEmitter implements chann

_dispose() {
assert(!this._disposed);
this._disposed = true;

// Clean up from parent and connection.
if (this._parent)
Expand Down

0 comments on commit e9f0f6c

Please sign in to comment.