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 23, 2024
1 parent 3170a5b commit 67dfe64
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 67dfe64

Please sign in to comment.