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 Jul 6, 2022
1 parent 22c6767 commit a6c338b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asgiref/timeout.py
Expand Up @@ -34,7 +34,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 a6c338b

Please sign in to comment.