summaryrefslogtreecommitdiff
path: root/python/qpid/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid/util.py')
-rw-r--r--python/qpid/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/util.py b/python/qpid/util.py
index 1ca616f1f5..bb7f5090df 100644
--- a/python/qpid/util.py
+++ b/python/qpid/util.py
@@ -34,8 +34,8 @@ def listen(host, port, predicate = lambda: True, bound = lambda: None):
sock = socket.socket()
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind((host, port))
- bound()
sock.listen(5)
+ bound()
while predicate():
s, a = sock.accept()
yield s