def disconnect(self):
        """
        Ends our server tcp connection.
        """
        # If we are not connected, return error.
        if not self.socket:
            logging.warning("No active socket to close!")
            return
        # Close our socket.
        self.socket.close()
        self.socket = None
def disconnect(self):
        
        
        if not self.socket:
            logging.warning("No active socket to close!")
            return
        
        self.socket.close()
        self.socket = None
def disconnect ( self ) : # If we are not connected, return error. if not self . socket : logging . warning ( "No active socket to close!" ) return # Close our socket. self . socket . close ( ) self . socket = None
Ends our server tcp connection.
Ends our server tcp connection .