Skip to content

Commit

Permalink
Listen to error on Encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 11, 2020
1 parent b662980 commit 1fd761d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Parallel/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ public function bindConnection(ReadableStreamInterface $out, WritableStreamInter
$onError = $this->onError;
$onError($error);
});
$in->on('error', function (\Throwable $error): void {
$onError = $this->onError;
$onError($error);
});
}

}

0 comments on commit 1fd761d

Please sign in to comment.