mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:57:00 +08:00
🐛 fix missing return after close ws
This commit is contained in:
parent
6b26cecd17
commit
2218fa2b33
@ -184,6 +184,7 @@ class Driver(BaseDriver):
|
||||
logger.warning("There's already a reverse websocket connection, "
|
||||
f"<y>{adapter.upper()} Bot {x_self_id}</y> ignored.")
|
||||
await ws.close(code=status.WS_1008_POLICY_VIOLATION)
|
||||
return
|
||||
|
||||
bot = BotClass(self, "websocket", self.config, x_self_id, websocket=ws)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user