From 9f1512459a99903ef0f083b5ac1550c83a6a3568 Mon Sep 17 00:00:00 2001 From: ziro Date: Mon, 17 Jul 2023 17:08:18 +0700 Subject: [PATCH] fix: Set timeout --- nexus/core/routes/ng/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus/core/routes/ng/meta.py b/nexus/core/routes/ng/meta.py index e6c67ed..2b7e323 100644 --- a/nexus/core/routes/ng/meta.py +++ b/nexus/core/routes/ng/meta.py @@ -52,7 +52,7 @@ async def requestBot(app: "Nexus", requestMessage: dict, userId: Optional[str] = app.logger.info("Sending request...") await app.reqSocket.send_string(request) app.logger.info("Receiving response...") - string = await asyncio.wait_for(app.reqSocket.recv_string(), timeout=1.0) + string = await asyncio.wait_for(app.reqSocket.recv_string(), timeout=25.0) message = json.loads(string) return message except (Exception, asyncio.CancelledError) as e: