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

stream-management: Fix failed resumption #1066

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

singpolyma
Copy link
Contributor

Not the function named failed

Not the function named failed
expect(entity.streamManagement.outbound).toBe(45);
expect(entity.streamManagement.outbound).toBe(0);
Copy link
Member

Choose a reason for hiding this comment

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

can you help me understand this change and why that expectation is correct ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If resume fails then we should not keep the previous outbound count from previous session, since we did not resume it, but rather we are starting a new session counting at zero.

@sonnyp sonnyp changed the title element.is("failed") stream-management: Fix failed resumption Feb 19, 2025
@sonnyp sonnyp merged commit d01b2f1 into xmppjs:main Feb 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants