Skip to content

Commit

Permalink
fix: remove .on() in discard() - typo
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Nov 27, 2024
1 parent 836db30 commit 895aad8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Ember/Client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,9 @@ export class EmberClient extends EventEmitter<EmberClientEvents> {
this._client.removeAllListeners()
// @ts-expect-error: after using this method, properties are no longer expected to always exist
delete this._client
this._client.on('disconnected', () => {
this._requests.clear() // Just clean up the requests
this.emit('disconnected') // Notify listeners about the disconnection
})
this._requests.clear() // Just clean up the requests
this.emit('disconnected') // Notify listeners about the disconnection

clearInterval(this._timer)
}

Expand Down

0 comments on commit 895aad8

Please sign in to comment.