mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Add a cancel message to the aiohttp compatiblity layer (#97058)
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user