diff --git a/cloudlink.py b/cloudlink.py index feae122..ce7c14e 100755 --- a/cloudlink.py +++ b/cloudlink.py @@ -325,8 +325,6 @@ def proxy_api_request( return resp else: match resp["type"]: - case "repairModeEnabled": - self.kick() case "ipBlocked"|"registrationBlocked": self.send_statuscode("Blocked", listener) case "badRequest": @@ -357,10 +355,8 @@ def send(self, cmd: str, val: Any, extra: Optional[dict] = None, listener: Optio def send_statuscode(self, statuscode: str, listener: Optional[str] = None): return self.send("statuscode", self.server.statuscodes[statuscode], listener=listener) - def kick(self): - async def _kick(): - await self.websocket.close() - asyncio.run(_kick()) + async def kick(self): + await self.websocket.close() class CloudlinkCommands: @staticmethod