Fix write_packet error not re-raised (#112)

This commit is contained in:
Otto Winter 2021-10-04 12:30:03 +02:00 committed by GitHub
parent 8da288a2b0
commit 7a49609ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -546,6 +546,7 @@ class APIConnection:
# If writing packet fails, we don't know what state the frames
# are in anymore and we have to close the connection
await self._report_fatal_error(err)
raise
async def send_message_callback_response(
self, send_msg: message.Message, on_message: Callable[[Any], None]