Skip to content

Commit

Permalink
Update timeout helper to use get_running_loop().
Browse files Browse the repository at this point in the history
  • Loading branch information
carltongibson committed Dec 15, 2022
1 parent 36f37c9 commit a76afc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asgiref/timeout.py
Expand Up @@ -35,7 +35,7 @@ def __init__(
) -> None:
self._timeout = timeout
if loop is None:
loop = asyncio.get_event_loop()
loop = asyncio.get_running_loop()
self._loop = loop
self._task = None # type: Optional[asyncio.Task[Any]]
self._cancelled = False
Expand Down

0 comments on commit a76afc4

Please sign in to comment.