mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 09:57:29 +03:00 
			
		
		
		
	Fix authenticator was disconnecting when it shouldn't
This commit is contained in:
		
							parent
							
								
									2b2da843a1
								
							
						
					
					
						commit
						7f83a6109f
					
				| 
						 | 
				
			
			@ -196,9 +196,6 @@ def _do_authentication(connection):
 | 
			
		|||
 | 
			
		||||
    # Step 3 response: Complete DH Exchange
 | 
			
		||||
    with BinaryReader(sender.receive()) as reader:
 | 
			
		||||
        # Everything read from the server, disconnect now
 | 
			
		||||
        sender.disconnect()
 | 
			
		||||
 | 
			
		||||
        code = reader.read_int(signed=False)
 | 
			
		||||
        if code == 0x3bcbf734:  # DH Gen OK
 | 
			
		||||
            nonce_from_server = reader.read(16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user