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

Wait until the stream is closed by the server on user removal #255

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

chrzaszcz
Copy link
Member

When removing a user over XMPP, the server sends a stream error with the "User removed" message, and closes the stream afterwards. Wait until it happens to avoid having incoming messages in the queue that would cause the wpool process to crash when trying to handle them later.

When removing a user over XMPP, the server sends a stream error with
the "User removed" message, and closes the stream afterwards.
Wait until it happens to avoid having incoming messages in the queue
that would cause the wpool process to crash when trying to handle them later.
@chrzaszcz chrzaszcz marked this pull request as ready for review January 9, 2023 11:08
Copy link
Contributor

@NelsonVides NelsonVides left a comment

Choose a reason for hiding this comment

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

Excellent 👌🏽

@NelsonVides NelsonVides merged commit 63652d3 into master Jan 9, 2023
@NelsonVides NelsonVides deleted the user-removal-fix branch January 9, 2023 11:15
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.

None yet

2 participants