Skip to content

Commit

Permalink
Fixes disconnect of the ws connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho authored Apr 3, 2023
1 parent 6b26084 commit d5f5d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Strophe.Websocket = class Websocket {
Strophe.warn("Couldn't send <close /> tag.");
}
}
setTimeout(() => this._conn._doDisconnect, 0);
setTimeout(() => this._conn._doDisconnect(), 0);
}

/** PrivateFunction: _doDisconnect
Expand Down

0 comments on commit d5f5d72

Please sign in to comment.