Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ResumeTask) reset resume timeout after running timer #2561

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

saghul
Copy link
Member

@saghul saghul commented Aug 23, 2024

It will avoid having an extra "Canceling connection resume task" log line every time we schedule a timer.

It will avoid having an extra "Canceling connection resume task" log
line every time we schedule a timer.
@saghul saghul merged commit 09333fb into jitsi:master Aug 27, 2024
1 of 2 checks passed
@@ -127,6 +127,8 @@ export default class ResumeTask {
* @returns {void}
*/
_resumeConnection() {
this._resumeTimeout = undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you also clear timeout? Like: clearTimeout(this._resumeTimeout); or it is not necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary since this function is called in the timeout handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants