Skip to content

Commit 4f6a5c8

Browse files
author
Adam Ashley
committed
When listening for signals actually exit once we've unsubscribed and no
longer receiving messages instead of waiting for a new message that will never arrive.
1 parent cffcbfc commit 4f6a5c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Command/BaseConsumerCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ public function stopConsumer()
2727
try {
2828
$this->consumer->stopConsuming();
2929
} catch (AMQPTimeoutException $e) {}
30-
} else {
31-
exit();
3230
}
31+
exit();
3332
}
3433

3534
public function restartConsumer()

0 commit comments

Comments
 (0)