mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 09:01:49 +00:00 
			
		
		
		
	Simple time.sleep in place of threading wait due to upgraded zeroconf (#2307)
This commit is contained in:
		@@ -49,7 +49,7 @@ class HostResolver(RecordUpdateListener):
 | 
				
			|||||||
                    next_ = now + delay
 | 
					                    next_ = now + delay
 | 
				
			||||||
                    delay *= 2
 | 
					                    delay *= 2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                zc.wait(min(next_, last) - now)
 | 
					                time.sleep(min(next_, last) - now)
 | 
				
			||||||
                now = time.time()
 | 
					                now = time.time()
 | 
				
			||||||
        finally:
 | 
					        finally:
 | 
				
			||||||
            zc.remove_listener(self)
 | 
					            zc.remove_listener(self)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user