mirror of
https://github.com/danog/process.git
synced 2024-11-26 20:24:43 +01:00
Fix double deferred resolution
This commit is contained in:
parent
239605b2e8
commit
e0c753c53b
@ -32,7 +32,9 @@ class ProcessInputStream implements InputStream {
|
||||
if ($error) {
|
||||
$this->error = new StreamException("Failed to launch process", 0, $error);
|
||||
if ($this->initialRead) {
|
||||
$this->initialRead->fail($this->error);
|
||||
$initialRead = $this->initialRead;
|
||||
$this->initialRead = null;
|
||||
$initialRead->fail($this->error);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user