This commit is contained in:
@@ -119,10 +119,8 @@ def synloop(obj, connection, consumer, blueprint, hub, qos,
|
||||
|
||||
obj.on_ready()
|
||||
|
||||
def _loop_cycle():
|
||||
"""
|
||||
Perform one iteration of the blocking event loop.
|
||||
"""
|
||||
while blueprint.state == RUN and obj.connection:
|
||||
state.maybe_shutdown()
|
||||
if heartbeat_error[0] is not None:
|
||||
raise heartbeat_error[0]
|
||||
if qos.prev != qos.value:
|
||||
@@ -135,9 +133,3 @@ def synloop(obj, connection, consumer, blueprint, hub, qos,
|
||||
except OSError:
|
||||
if blueprint.state == RUN:
|
||||
raise
|
||||
|
||||
while blueprint.state == RUN and obj.connection:
|
||||
try:
|
||||
state.maybe_shutdown()
|
||||
finally:
|
||||
_loop_cycle()
|
||||
|
||||
Reference in New Issue
Block a user