Skip to content

Commit

Permalink
destroy observable when Awareness is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Aug 4, 2020
1 parent 77a378d commit ab41498
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions awareness.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class Awareness extends Observable {
this.setLocalState({})
}
destroy () {
super.destroy()
clearInterval(this._checkInterval)
}
/**
Expand Down

0 comments on commit ab41498

Please sign in to comment.