mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 07:57:38 +03:00 
			
		
		
		
	Don't .disconnect() on FloodWaitError
Since other requests can still be invoked, it makes no sense to call .disconnect().
This commit is contained in:
		
							parent
							
								
									bec5f9fb89
								
							
						
					
					
						commit
						9cf5506ee4
					
				|  | @ -537,8 +537,6 @@ class TelegramBareClient: | |||
| 
 | ||||
|         except FloodWaitError as e: | ||||
|             if e.seconds > self.session.flood_sleep_threshold | 0: | ||||
|                 sender.disconnect() | ||||
|                 self.disconnect() | ||||
|                 raise | ||||
| 
 | ||||
|             self._logger.debug( | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user