Skip to content

Commit

Permalink
fix(ResumeTask) reset resume timeout after running timer
Browse files Browse the repository at this point in the history
It will avoid having an extra "Canceling connection resume task" log
line every time we schedule a timer.
  • Loading branch information
saghul committed Aug 27, 2024
1 parent 61a2efe commit 09333fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/xmpp/ResumeTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ export default class ResumeTask {
* @returns {void}
*/
_resumeConnection() {
this._resumeTimeout = undefined;

const { streamManagement } = this._stropheConn;
const resumeToken = streamManagement.getResumeToken();

Expand Down

0 comments on commit 09333fb

Please sign in to comment.