1
0
mirror of https://github.com/danog/process.git synced 2024-12-11 16:49:40 +01:00

Fix exit code watcher on Windows

This commit is contained in:
Niklas Keller 2017-09-17 20:58:15 +02:00
parent f57648e278
commit 624d8b59de

View File

@ -127,7 +127,7 @@ final class Runner implements ProcessRunner {
throw new ProcessException("Terminating process failed");
}
if ($this->exitCodeWatcher !== null) {
if ($handle->exitCodeWatcher !== null) {
Loop::cancel($handle->exitCodeWatcher);
$handle->exitCodeWatcher = null;
}