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

Add debugging, stop hang in ProcessInThread. #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nwp90
Copy link

@nwp90 nwp90 commented May 26, 2016

Had a few problems getting things going with mdk - this fixes them.

Added a little debugging (which should only show when debug is configured anyway) to make it clearer what's going on.

2 problems fixed:

  1. if something is already listening on the port selenium wants to use, selenium dies immediately. This caused an exception when trying to kill a nonexistent process.

  2. hung in "while True" loop. Which is unnecessary & inefficient anyway. proc.poll() check was incorrect (should have checked for "is not None"), but using communicate() is simpler, easier to read, more efficient etc. anyway.

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.

1 participant