mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #35174 -- Fixed Signal.asend()/asend_robust() crash when all receivers are asynchronous.
Regression in e83a88566a.
This commit is contained in:
committed by
Mariusz Felisiak
parent
2f14c2cedc
commit
1b5338d03e
@@ -244,7 +244,9 @@ class Signal:
|
||||
return responses
|
||||
|
||||
else:
|
||||
sync_send = list
|
||||
|
||||
async def sync_send():
|
||||
return []
|
||||
|
||||
responses, async_responses = await asyncio.gather(
|
||||
sync_send(),
|
||||
@@ -380,7 +382,9 @@ class Signal:
|
||||
return responses
|
||||
|
||||
else:
|
||||
sync_send = list
|
||||
|
||||
async def sync_send():
|
||||
return []
|
||||
|
||||
async def asend_and_wrap_exception(receiver):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user