mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47:10 +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
|
task_handler = self._task_handler
|
||||||
super().connection_lost(exc)
|
super().connection_lost(exc)
|
||||||
if task_handler is not None:
|
if task_handler is not None:
|
||||||
task_handler.cancel()
|
task_handler.cancel("aiohttp connection lost")
|
||||||
|
|
||||||
|
|
||||||
def restore_original_aiohttp_cancel_behavior() -> None:
|
def restore_original_aiohttp_cancel_behavior() -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user