From 4d7b8f519f05a0dce7f1e10077102731ed493ebd Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 13 Sep 2019 21:45:08 -0300 Subject: [PATCH] users: properly close underlying websocket when disconnecting --- litecord/blueprints/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/users.py b/litecord/blueprints/users.py index bea5b89..4127a4a 100644 --- a/litecord/blueprints/users.py +++ b/litecord/blueprints/users.py @@ -531,7 +531,7 @@ async def user_disconnect(user_id): continue # force a close, 4000 should make the client reconnect. - await state.ws.close(4000) + await state.ws.ws.close(4000) @bp.route('/@me/delete', methods=['POST'])