Commit 655c5efb authored by Elizabeth Myers's avatar Elizabeth Myers 💬
Browse files

Fix disconnecterror

parent 6c2bfa77
......@@ -49,7 +49,8 @@ async def handle_frame(client, frame):
data={'message': str(e)})
await client.write_frame(reply)
except DisconnectError as e:
reply = Frame(f'${conf.server_name}', frame.src, 'error',
reply_to = f'@{client.username}' if client.username else '@'
reply = Frame(f'${conf.server_name}', reply_to, 'error',,
data={'message': str(e), 'disconnect': True})
await client.write_frame(reply)
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment