Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
janthurau committed Jul 11, 2024
1 parent 0194c18 commit ce395d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/provider/src/HocuspocusProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,9 @@ export class HocuspocusProvider extends EventEmitter {
this.configuration.websocketProvider.off('destroy', this.forwardDestroy)

if (!this.configuration.preserveConnection) {
this.send(CloseMessage, { documentName: this.configuration.name });
this.send(CloseMessage, { documentName: this.configuration.name })
}

this.disconnect()

if (typeof window === 'undefined' || !('removeEventListener' in window)) {
Expand Down

0 comments on commit ce395d8

Please sign in to comment.