zephyr_mirror: Don't try subscribing to an empty stream list.
(imported from commit c8155459b768dd1fc192246c1f584abb30a7bc02)
This commit is contained in:
		
							parent
							
								
									1a5f0648c5
								
							
						
					
					
						commit
						e182bfcb98
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -134,7 +134,8 @@ def update_subscriptions_from_humbug():
 | 
			
		|||
        if stream in current_zephyr_subs:
 | 
			
		||||
            continue
 | 
			
		||||
        streams_to_subscribe.append((stream.encode("utf-8"), "*", "*"))
 | 
			
		||||
    zephyr_bulk_subscribe(streams_to_subscribe)
 | 
			
		||||
    if len(streams_to_subscribe) > 0:
 | 
			
		||||
        zephyr_bulk_subscribe(streams_to_subscribe)
 | 
			
		||||
 | 
			
		||||
def maybe_restart_mirroring_script():
 | 
			
		||||
    if os.stat(os.path.join(options.root_path, "stamps", "restart_stamp")).st_mtime > start_time or \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue