From 09333fb2b8680a195eec50b41a4ddf2c80ee6935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 23 Aug 2024 15:36:05 +0200 Subject: [PATCH] fix(ResumeTask) reset resume timeout after running timer It will avoid having an extra "Canceling connection resume task" log line every time we schedule a timer. --- modules/xmpp/ResumeTask.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/xmpp/ResumeTask.js b/modules/xmpp/ResumeTask.js index 6ad25cf4fd..7f33c6bcce 100644 --- a/modules/xmpp/ResumeTask.js +++ b/modules/xmpp/ResumeTask.js @@ -127,6 +127,8 @@ export default class ResumeTask { * @returns {void} */ _resumeConnection() { + this._resumeTimeout = undefined; + const { streamManagement } = this._stropheConn; const resumeToken = streamManagement.getResumeToken();