1
0
mirror of https://github.com/danog/process.git synced 2025-01-22 05:41:17 +01:00

Fix ProcessInputStream

This commit is contained in:
Niklas Keller 2017-09-17 19:16:18 +02:00
parent 08a7014aef
commit 403452c321

View File

@ -27,7 +27,9 @@ class ProcessInputStream implements InputStream {
$resourceStreamPromise->onResolve(function ($error, $resourceStream) {
if ($error) {
$this->error = new StreamException("Failed to launch process", 0, $error);
$this->initialRead->fail($this->error);
if ($this->initialRead) {
$this->initialRead->fail($this->error);
}
return;
}