Skip to content

Commit

Permalink
fix: Set timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 17, 2023
1 parent a78a9da commit 9f15124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/core/routes/ng/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9f15124

Please sign in to comment.