Skip to content

Commit 313e278

Browse files
bbrowning918carltongibson
authored andcommitted
use get_running_loop
1 parent a8e51ba commit 313e278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

channels_redis/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ async def receive(self, channel):
290290
self.client_prefix + "!"
291291
), "Wrong client prefix"
292292
# Enter receiving section
293-
loop = asyncio.get_event_loop()
293+
loop = asyncio.get_running_loop()
294294
self.receive_count += 1
295295
try:
296296
if self.receive_count == 1:

0 commit comments

Comments
 (0)