fix CPU usage
This commit is contained in:
		
							parent
							
								
									85955d6e6d
								
							
						
					
					
						commit
						2723295101
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -222,8 +222,8 @@ class EventLoop(object): | |||
|                 for callback in self._periodic_callbacks: | ||||
|                     callback() | ||||
|                 self._last_time = now | ||||
|             if events and (handle is False): | ||||
|                 time.sleep(0.01) | ||||
|             if events and not handle: | ||||
|                 time.sleep(0.02) | ||||
| 
 | ||||
|     def __del__(self): | ||||
|         self._impl.close() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue