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

Still Running #1

Open
jtwebman opened this issue Feb 10, 2016 · 3 comments
Open

Still Running #1

jtwebman opened this issue Feb 10, 2016 · 3 comments

Comments

@jtwebman
Copy link

Node stays running because you have 2 setIntervals callbacks running every second. You will need to call clearInterval with the value returned from the setInterval to stop them.

You also have two net servers listen on port 0 which means the server will pick a random port to listen on. They will listen forever so you will need to call server.close(*cb) if you want the node process to stop.

@freeall
Copy link

freeall commented Feb 10, 2016

Perfect answer!

@ralphtheninja
Copy link
Contributor

😀

@jtwebman
Copy link
Author

Now if we can change the tool to say this it woukd be even better. :)

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