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

Clear remove idle timer after destroyAllNow #37

Merged
merged 1 commit into from Jun 27, 2012
Merged

Clear remove idle timer after destroyAllNow #37

merged 1 commit into from Jun 27, 2012

Conversation

dougwilson
Copy link
Contributor

This keeps track of the remove idle timer and will clear the timer when destroyAllNow is called, as after all clients are destroyed there is no need to check for idle clients any longer. Without clearing the timer, a program may have called destroyAllNow because it was about to exit, but if the remove idle timer still exists,
the event loop will continue running until at most realIntervalMillis.

Plus, clearing this timer is just awesome in general, as it prevents unnecessary work.

This keeps track of the remove idle timer and will clear the timer
when destroyAllNow is called, as after all clients are destroyed
there is no need to check for idle clients any longer. Without
clearing the timer, a program may have called destroyAllNow because
it was about to exit, but if the remove idle timer still exists,
the event loop will continue running until at most realIntervalMillis.
coopernurse added a commit that referenced this pull request Jun 27, 2012
Clear remove idle timer after destroyAllNow
@coopernurse coopernurse merged commit 7cb7505 into coopernurse:master Jun 27, 2012
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

2 participants