def close(self): """ Closes the current connection. """ with self._lock: remote_api.simxFinish(self.client_id)
def close_all_connections(): """ Closes all opened connection to V-REP remote API server. """ remote_api.simxFinish(-1)