Skip to content

Commit

Permalink
fix: don't ping server if client is reconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Feb 6, 2022
1 parent 66a2e84 commit d8f2d2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class ClientSessionKeepAliveManager extends EventEmitter implements Clien
*/
private async _ping_server(): Promise<number> {
const session = this.session;
if (!session) {
if (!session || session.isReconnecting) {
debugLog("ClientSessionKeepAliveManager#ping_server => no session available");
return 0;
}
Expand Down

0 comments on commit d8f2d2a

Please sign in to comment.