Skip to content

Commit

Permalink
Update aiohttp/web_protocol.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer committed Sep 22, 2024
1 parent d925a22 commit c9b9f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/web_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async def shutdown(self, timeout: Optional[float] = 15.0) -> None:
self._current_request._cancel(asyncio.CancelledError())

if self._task_handler is not None and not self._task_handler.done():
await self._task_handler
await asyncio.shield(self._task_handler)
except (asyncio.CancelledError, asyncio.TimeoutError):
if (
sys.version_info >= (3, 11)
Expand Down

0 comments on commit c9b9f1d

Please sign in to comment.