Close connection.
348792
def close(self):
        """"""
        self.__class__.cached_state = self.conn.state
        super().close()
812645
def close(self):
        """"""
        self._closed = True
        if self.receive_task:
            self.receive_task.cancel()
        if self.connection:
            self.connection.close()
488533
def disconnect(self):
        """"""
        self.target_device.disconnect()
        self.ctrl.disconnect()
        self.tail_disconnect(-1)
684811
def close(self, connection, *, commit=True):
    """"""
    if commit:
      connection.commit()
    else:
      connection.rollback()
    self.closer(connection)
770559
def stop(self):
        """"""
        self._stop_thread.set()
        # f you want to close the connection in a timely fashion,
        # call shutdown() before close().
        with self._lock:  # Receive thread might use the socket
            self.receive_socket.shutdown(socket.SHUT_RDWR)
            self.receive_socket.close()

        self.send_socket.shutdown(socket.SHUT_RDWR)
        self.send_socket.close()
48827
async def close(self):
        """"""
        if not self._conn:
            return
        c = await self._execute(self._conn.close)
        self._conn = None
        return c
936230
def close(self):
        ''''''
        if self._connection:
            self._connection_file.close()
            self._connection_file = None
            self._connection.close()
            self._connection = None
661854
def close(self):
        """"""
        logger.debug('closing dongle, {} active connections'.format(len(self.conn_handles)))
        if self.is_scanning():
            logger.debug('in scanning mode, calling end_scan')
            self.end_scan()
        self.reset()
        if self.api is not None:
            self.api.stop_daemon()
            self.api = None
54695
def disconnect(self):
        
        if self.con is not None:
            self.con.close()
            log.debug('Closed connection with with set-top box at %s:%s.',
                      self.ip, self.port)
914311
def close(self):
        """"""
        if not self.lock_disable and self.session_config_lock:
            self._unlock()
        self.device.close()
347878
def close(self):
        """"""
        if self.sock:
            self.sock.close()
        self.sock = 0
        self.eof = 1
1035064
def close(self):
        """"""
        # Instead of actually closing the connection,
        # return it to the pool so it can be reused.
        if self._con is not None:
            self._pool.cache(self._con)
            self._con = None
68769
def remove_connection(self, connection):
        """"""
        if not self._closing:
            self.connections.remove(connection)
            logger.debug("removed connection")
1298903
def close(self):
        """"""
        if self._channel and self._channel.is_open:
            self._channel.close()
        self._channel_ref = None
541033
def Stop(self):
    """"""
    self._Close()

    if self._rpc_thread.isAlive():
      self._rpc_thread.join()
    self._rpc_thread = None
442570
async def close(self) -> None:
        """"""
        await self._execute(self._conn.close)
        self._running = False
        self._connection = None
326496
def close(self):
        
        conn = self.connection
        if conn is None:
            return
        try:
            while self.nextset():
                pass
        finally:
            self.connection = None