mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
fix: unbind awareness events before destroying awareness (#2330)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
669e73d8a1
commit
4c817e1854
1 changed files with 1 additions and 1 deletions
|
@ -35,8 +35,8 @@ export class WebsocketConnection extends WebsocketTransporter {
|
|||
}
|
||||
}
|
||||
this.on('disconnected', () => {
|
||||
awareness.destroy()
|
||||
awareness.off('update', updateCallback)
|
||||
awareness.destroy()
|
||||
})
|
||||
|
||||
this.on('ready', () => {
|
||||
|
|
Loading…
Reference in a new issue