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