Skip to content

Commit

Permalink
Fix UnhandledFutureError if reading exit code fails
Browse files Browse the repository at this point in the history
Relates to #69.
  • Loading branch information
kelunik committed Feb 2, 2024
1 parent 72fb16e commit 1ef7ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/Windows/SocketConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function connectPipes(WindowsHandle $handle, Cancellation $cancellation):
$exitCode = $this->readExitCode($handle->exitCodeStream);

$handle->joinDeferred->complete($exitCode);
} catch (HandshakeException) {
} catch (\Throwable) {
$handle->joinDeferred->error(new ProcessException("Failed to read exit code from process wrapper"));
} finally {
$handle->status = ProcessStatus::Ended;
Expand Down

0 comments on commit 1ef7ac4

Please sign in to comment.