1
0
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:
Niklas Keller 2018-03-23 21:18:04 +01:00
parent 239605b2e8
commit e0c753c53b

View File

@ -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;
}