1
0
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:
Vašek Dohnal
2024-02-08 09:21:03 +01:00
committed by Mariusz Felisiak
parent 2f14c2cedc
commit 1b5338d03e
3 changed files with 26 additions and 2 deletions

View File

@@ -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: