mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Add a cancel message to the aiohttp compatiblity layer (#97058)
This commit is contained in:
parent
fe0fe19be9
commit
e60313628f
@ -12,7 +12,7 @@ class CancelOnDisconnectRequestHandler(web_protocol.RequestHandler):
|
||||
task_handler = self._task_handler
|
||||
super().connection_lost(exc)
|
||||
if task_handler is not None:
|
||||
task_handler.cancel()
|
||||
task_handler.cancel("aiohttp connection lost")
|
||||
|
||||
|
||||
def restore_original_aiohttp_cancel_behavior() -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user