zephyr_mirror: Fix case where we're not forwarding class messages.
(imported from commit c40ae12522dcf3a7c3b02d92dbc230c8b4c582ac)
This commit is contained in:
parent
3071afe3d4
commit
db3905475c
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue