INNER CODE UNIT · Python

disconnect

unrealcv/unrealcv · client/python/unrealcv/__init__.py:375

    def disconnect(self):
        """Disconnect from server"""
        if self.isconnected():
            _L.debug(
                'BaseClient, request disconnect from server in %s',
                threading.current_thread().name,
            )

            try:
                self.sock.shutdown(socket.SHUT_RD)
            except OSError:
                pass

            if self.sock:
                try:
                    self.sock.close()
                except OSError:
                    pass

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…