Skip to content

Commit 3f8af61

Browse files
fix discard
1 parent 75c5519 commit 3f8af61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_asynciomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4155,7 +4155,7 @@ _asyncio_future_discard_from_awaited_by_impl(PyObject *module, PyObject *fut,
41554155
if (TaskOrFuture_Check(state, fut) && TaskOrFuture_Check(state, waiter)) {
41564156
int res;
41574157
Py_BEGIN_CRITICAL_SECTION(fut);
4158-
res = future_awaited_by_add(state, (FutureObj *)fut, waiter);
4158+
res = future_awaited_by_discard(state, (FutureObj *)fut, waiter);
41594159
Py_END_CRITICAL_SECTION();
41604160
if (res) {
41614161
return NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy