Skip to content

Commit 1ef7ac4

Browse files
committed
Fix UnhandledFutureError if reading exit code fails
Relates to #69.
1 parent 72fb16e commit 1ef7ac4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Internal/Windows/SocketConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function connectPipes(WindowsHandle $handle, Cancellation $cancellation):
102102
$exitCode = $this->readExitCode($handle->exitCodeStream);
103103

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

0 commit comments

Comments
 (0)