Skip to content

Commit

Permalink
always disconnect the session
Browse files Browse the repository at this point in the history
  • Loading branch information
edolix committed Apr 6, 2023
1 parent 7e36804 commit 9b26657
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/core/src/BaseSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,6 @@ export class BaseSession {
* @return void
*/
async disconnect() {
/**
* Return if there is not a _socket instance or
* if it's already in closing state.
*/
if (!this._socket || this.closing) {
this.logger.debug('Session not connected or already in closing state.')
return
}

this._status = 'disconnecting'
this._checkCurrentStatus()
}
Expand Down

0 comments on commit 9b26657

Please sign in to comment.