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 executing queued commands in the order they are enqueued #75

Merged
merged 1 commit into from
Sep 9, 2018

Conversation

clue
Copy link
Contributor

@clue clue commented Sep 6, 2018

This PR fixes #70. This was caused by the Parser trying to execute multiple commands at the same time when commands are already queued and a new command is queued from a success handler. When the second command was completed, it would no longer have a reference to the command and would bail out. This is a side effect that was introduced with #52, but the underlying flaw has been present for much longer. The fix ensures we only ever take one command from the queue and then wait for it to finish.

Builds on top of #52
Supersedes / closes #74, thank you @elprawn
Resolves / closes #70

@jsor jsor merged commit cc5a8a2 into friends-of-reactphp:master Sep 9, 2018
@clue clue deleted the fix-queue branch September 9, 2018 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP Fatal error: Uncaught Error: Call to a member function emit() on null
3 participants