Skip to content

Commit 363f750

Browse files
committed
fix: Drop scheduling ws keep-alive on shard set.
If set shard is executed after connect we will clear the check that is scheduled in 5 seconds after connecting.
1 parent 98f8d2e commit 363f750

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

modules/xmpp/XmppConnection.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,6 @@ export default class XmppConnection extends Listenable {
323323
*/
324324
set shard(value: string) {
325325
this._options.shard = value;
326-
327-
// shard setting changed so let's schedule a new keep-alive check if connected
328-
if (this._oneSuccessfulConnect) {
329-
this._maybeStartWSKeepAlive();
330-
}
331326
}
332327

333328
/**

0 commit comments

Comments
 (0)