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(server): clear web server close timeout on clean close #1039

Merged
merged 1 commit into from
Apr 25, 2014

Conversation

pkozlowski-opensource
Copy link
Member

When Karma server shuts down it also closes a web server it started. In order to properly close the started web server, there is a setTimeout of 3s that should execute cleanup operations when a web server doesn't close cleanly. Unfortunately this fallback timeout is not canceled when a web server does close cleanly, preventing karma process from exiting for 3s.

This PR fixes this by cancelling the fallback timeout in the clan close callback.

This is is part of many fixes we need to do in order to fix #1035

@dignifiedquire
Copy link
Member

lgtm

@sylvain-hamel
Copy link
Contributor

@pkozlowski-opensource thanks, lgtm too

@lazd
Copy link

lazd commented Apr 21, 2014

Good catch, simple fix.

@vojtajina
Copy link
Contributor

Nice. Sending to presubmit queue....

@vojtajina vojtajina merged commit 34123fe into karma-runner:master Apr 25, 2014
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.

Karma doesn't exit properly when using public api with the finish callback
5 participants