mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	Irc: only disconnect the write portion of the socket
Per https://docs.python.org/3/howto/sockets.html#disconnecting
This commit is contained in:
		
							parent
							
								
									59dd8d3bf8
								
							
						
					
					
						commit
						f4babc6f28
					
				@ -385,7 +385,7 @@ class Irc(utils.DeprecatedAttributesObject):
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            log.debug('(%s) disconnect: Shutting down socket.', self.name)
 | 
			
		||||
            self.socket.shutdown(socket.SHUT_RDWR)
 | 
			
		||||
            self.socket.shutdown(socket.SHUT_WR)
 | 
			
		||||
        except:  # Socket timed out during creation; ignore
 | 
			
		||||
            pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user