Skip to content

Commit

Permalink
Update Client.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL authored and nekufa committed Nov 18, 2023
1 parent 9fe091e commit 7dfde72
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,7 @@ public function process(null|int|float $timeout = 0, bool $reply = true)
}
$result = $this->handlers[$message->sid]($message->payload, $message->replyTo);
if ($reply && $message->replyTo) {
$this->send(new Publish([
'subject' => $message->replyTo,
'payload' => Payload::parse($result),
]));
$this->publish($message->replyTo, $result);
}
break;
}
Expand Down

0 comments on commit 7dfde72

Please sign in to comment.