Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 22e105d

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

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/Connection.php
+1Lines changed: 1 addition & 0 deletions
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.