summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kombu/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kombu/common.py b/kombu/common.py
index affebb5a..2a6117db 100644
--- a/kombu/common.py
+++ b/kombu/common.py
@@ -87,7 +87,8 @@ class Broadcast(Queue):
def __init__(self, name=None, queue=None, auto_delete=True,
exchange=None, alias=None, **kwargs):
- queue = '{0}.{1}'.format(queue or 'bcast', uuid())
+ if queue is None:
+ queue = '{0}.{1}'.format(name or 'bcast', uuid())
return super(Broadcast, self).__init__(
alias=alias or name,
queue=queue,