Skip to content

Commit 218e864

Browse files
committed
Explicitly assign the loop to the event
1 parent 1816a08 commit 218e864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/auth/token_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def start(
151151
thread.start()
152152

153153
# Event to block for initial execution.
154-
init_event = asyncio.Event()
154+
init_event = asyncio.Event(loop=loop)
155155
self._init_timer = loop.call_later(
156156
0, self._renew_token, skip_initial, init_event
157157
)

0 commit comments

Comments
 (0)