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

reset rooms object before broadcasting #2970

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

darrachequesne
Copy link
Member

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

It seems packets could be delivered to wrong room in some case, if the _rooms array was not reset before the next emit.

New behaviour

Other information (e.g. related issues)

Closes #2962.

It seems packets could be delivered to wrong room in some case, if the
_rooms array was not reset before the next emit.
@darrachequesne darrachequesne merged commit db0c699 into socketio:master Jun 12, 2017
@darrachequesne darrachequesne deleted the fix/issue-2962 branch June 12, 2017 12:01
@darrachequesne darrachequesne added this to the 2.0.3 milestone Jun 13, 2017
dzad pushed a commit to dzad/socket.io that referenced this pull request May 29, 2023
It seems packets could be delivered to wrong room in some case, if the
_rooms array was not reset before the next emit.
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.

Packets getting delivered to wrong room
1 participant