Commit 30a71b55 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Make linting more happy

parent 515fb5a3
......@@ -291,15 +291,19 @@ class ForkedSubprocess:
raise ForkedSubprocessNotRunningException('wait() was called on a subprocess which is not running')
# Stop writer
self._stdin_writer.stop()
if self._stdin_writer:
self._stdin_writer.stop()
# Wait for process exit
self._process.wait()
# Wait for threads to read data and exit
self._stdin_writer.wait()
self._stdout_reader.wait()
self._stderr_reader.wait()
if self._stdin_writer:
self._stdin_writer.wait()
if self._stdout_reader:
self._stdout_reader.wait()
if self._stderr_reader:
self._stderr_reader.wait()
return self._process.returncode
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment