Skip to content

Commit

Permalink
prevent throwing NOT_FOUND error when tube is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
eminjk authored and nicolas-grekas committed Feb 5, 2024
1 parent 09e3b2a commit 4da0259
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Transport/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public function reject(string $id): void
public function getMessageCount(): int
{
try {
$this->client->useTube($this->tube);
$tubeStats = $this->client->statsTube($this->tube);
} catch (Exception $exception) {
throw new TransportException($exception->getMessage(), 0, $exception);
Expand Down

0 comments on commit 4da0259

Please sign in to comment.