From 624d8b59dedbc16e5ae8f1b5144c7f6e023f75d5 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 17 Sep 2017 20:58:15 +0200 Subject: [PATCH] Fix exit code watcher on Windows --- lib/Internal/Windows/Runner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Internal/Windows/Runner.php b/lib/Internal/Windows/Runner.php index 45163a0..c312bdb 100644 --- a/lib/Internal/Windows/Runner.php +++ b/lib/Internal/Windows/Runner.php @@ -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; }