s/wait/join/

pull/35/head
David Wilson 8 years ago
parent 54b0a0aed7
commit ac2a52587b

@ -650,7 +650,7 @@ class Broker(object):
self._alive = False self._alive = False
self._waker.wake() self._waker.wake()
def wait(self): def join(self):
"""Wait for the broker to stop.""" """Wait for the broker to stop."""
self._thread.join() self._thread.join()
@ -736,4 +736,4 @@ class ExternalContext(object):
LOG.debug('ExternalContext.main() exitting') LOG.debug('ExternalContext.main() exitting')
finally: finally:
self.broker.shutdown() self.broker.shutdown()
self.broker.wait() self.broker.join()

@ -28,7 +28,7 @@ def run_with_broker(func, *args, **kwargs):
return func(broker, *args, **kwargs) return func(broker, *args, **kwargs)
finally: finally:
broker.shutdown() broker.shutdown()
broker.wait() broker.join()
def with_broker(func): def with_broker(func):

Loading…
Cancel
Save