From 3f8af61d0b4393571cd1af2c96a5fb3d41bd3afb Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Thu, 6 Feb 2025 16:08:57 +0000 Subject: [PATCH] fix discard --- Modules/_asynciomodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index a20a18db3607f0..09ab8f13fe1f5d 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -4155,7 +4155,7 @@ _asyncio_future_discard_from_awaited_by_impl(PyObject *module, PyObject *fut, if (TaskOrFuture_Check(state, fut) && TaskOrFuture_Check(state, waiter)) { int res; Py_BEGIN_CRITICAL_SECTION(fut); - res = future_awaited_by_add(state, (FutureObj *)fut, waiter); + res = future_awaited_by_discard(state, (FutureObj *)fut, waiter); Py_END_CRITICAL_SECTION(); if (res) { return NULL; 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