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 race condition described in issue #1417 #1449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ginden
Copy link
Contributor

@Ginden Ginden commented Sep 8, 2017

Fix race condition described in issue #1417

@benjamingr
Copy link
Collaborator

cc @petkaantonov

@Ginden
Copy link
Contributor Author

Ginden commented Apr 10, 2019

@benjamingr Can it be merged or rejected? It's 17 months old already.

@benjamingr
Copy link
Collaborator

Yeah probably, sorry, @petkaantonov

@sanji-programmer
Copy link

I post a comment on this fix in #1417

@benjamingr
Copy link
Collaborator

@petkaantonov

var handleWrapper = new HandleWrapper(setTimeout(function timeoutTimeout() {
if (ret.isPending()) {

Choose a reason for hiding this comment

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

ret seems to be undefined.

var handleWrapper = new HandleWrapper(setTimeout(function timeoutTimeout() {
if (ret.isPending()) {
if (originalPromise.isPending()) {

Choose a reason for hiding this comment

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

If possible can you add a test to ensure that this code path is protected from future regressions?

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

4 participants