zephyr_mirror: Fix case where we're not forwarding class messages.

(imported from commit c40ae12522dcf3a7c3b02d92dbc230c8b4c582ac)
This commit is contained in:
Tim Abbott 2012-10-12 10:16:13 -04:00
parent 3071afe3d4
commit db3905475c

View file

@ -125,13 +125,14 @@ def process_loop(log):
sleep_time = 0.1 sleep_time = 0.1
while True: while True:
notice = zephyr.receive(block=False) notice = zephyr.receive(block=False)
if notice is None and options.forward_class_messages: if notice is None:
# Ask the Humbug server about any new classes to subscribe to
time.sleep(sleep_time) time.sleep(sleep_time)
sleep_count += sleep_time sleep_count += sleep_time
if sleep_count > 15: if sleep_count > 15:
sleep_count = 0 sleep_count = 0
update_subscriptions_from_humbug() if options.forward_class_messages:
# Ask the Humbug server about any new classes to subscribe to
update_subscriptions_from_humbug()
continue continue
try: try: