8000 prevent throwing NOT_FOUND error when tube is empty · symfony/symfony@22e105d · GitHub
[go: up one dir, main page]

Skip to content

Commit 22e105d

Browse files
eminjknicolas-grekas
authored andcommitted
prevent throwing NOT_FOUND error when tube is empty
1 parent f129e3b commit 22e105d

File tree

1 file changed

+1
-0
lines changed
  • src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport

1 file changed

+1
-0
lines changed

src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/Connection.php

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public function reject(string $id): void
182182
public function getMessageCount(): int
183183
{
184184
try {
185+
$this->client->useTube($this->tube);
185186
$tubeStats = $this->client->statsTube($this->tube);
186187
} catch (Exception $exception) {
187188
throw new TransportException($exception->getMessage(), 0, $exception);

0 commit comments

Comments
 (0)
0