🐛 fix missing return after close ws

This commit is contained in:
yanyongyu 2021-01-04 18:09:42 +08:00
parent 6b26cecd17
commit 2218fa2b33

View File

@ -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)