From db3905475c4f38f78718b44a5f92d567a9c30c98 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 12 Oct 2012 10:16:13 -0400 Subject: [PATCH] zephyr_mirror: Fix case where we're not forwarding class messages. (imported from commit c40ae12522dcf3a7c3b02d92dbc230c8b4c582ac) --- zephyr_mirror.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index 676ed44..d992029 100644 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -125,13 +125,14 @@ 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 - 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 try: