Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Parallel/ValueObject/ParallelProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ public function quit(): void
$pipe->close();
}

$this->encoder->end();
// the process can be quit before its connection is bound, e.g. on quitAll() after an error;
// in that case the encoder was never set
if (isset($this->encoder)) {
$this->encoder->end();
}
}

public function bindConnection(Decoder $decoder, Encoder $encoder): void
Expand Down
Loading