Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Race condition right on the server.js file? #272

Closed
ryanisinallofus opened this issue Nov 21, 2014 · 2 comments
Closed

Race condition right on the server.js file? #272

ryanisinallofus opened this issue Nov 21, 2014 · 2 comments

Comments

@ryanisinallofus
Copy link

Is there a race condition right in the main server.js file? It looks like app.listen is being called independently of mongo connecting. Shouldn't we wait for the connection?

Our personal fix:
https://gist.github.com/ryanrray/dd834b25c58e29033d5a

We've found a few race conditions which occur mostly when running grunt test but this one seems like a biggy.

@ilanbiala
Copy link
Member

Take a look at #224.

@ryanisinallofus
Copy link
Author

Same solution. Closing as dupe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants