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

Double prompt #26

Open
paulirish opened this issue May 3, 2015 · 4 comments
Open

Double prompt #26

paulirish opened this issue May 3, 2015 · 4 comments

Comments

@paulirish
Copy link
Contributor

Been hitting this situation recently:
image

Two prompt()s are initiated, connected to the same client.
Not sure of the root cause, but we're getting two "connection" events inbound sometimes.

This may be a side-effect of the deps bumps I did. :/

Meanwhile, I've noticed that the vm.get callback sometimes starts much later than the socket's "connection" event. I moved start() into that callback in 3b834cb but I think it's a race condition either way.

To me, feels like the fix to both is only starting the prompt once both wd and the socket are ready

Hows that sound?

@jamischarles
Copy link

Getting this as well. Really wonky

@paulirish
Copy link
Contributor Author

Here are the two locations:

AFAIK we just need some Promise.all() equivalent to kick off start() once those locations resolve. @rauchg do you have any different preference here?

@rauchg
Copy link
Contributor

rauchg commented May 26, 2015

no preference, makes sense to wait for both

@paulirish
Copy link
Contributor Author

K. If someone wants to add Bluebird and hook this up, the PR should be straightforward based on my last comment. I won't be able to get to it soon.

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

No branches or pull requests

3 participants