mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-91048: fix _asyncio.future_discard_from_awaited_by
(#129731)
fix discard
This commit is contained in:
parent
75c551974f
commit
e7bc0cd182
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue