(self)
Close the connection if it is open.
Close the connection if it is open.
Close the connection if it is open .
def close(self):
        """
        Close the connection if it is open.
        """
        if self._connection:
            self.disconnect()
        self._connection = None
def close ( self ) : if self . _connection : self . disconnect ( ) self . _connection = None