mirror of
https://github.com/danog/process.git
synced 2025-01-22 05:41:17 +01:00
Fix ProcessInputStream
This commit is contained in:
parent
08a7014aef
commit
403452c321
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user