Skip to content

Commit 3861200

Browse files
committed
clear fi_future in python throw/close
1 parent fca5691 commit 3861200

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Lib/asyncio/futures.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,11 @@ def send(self, v, /):
324324
return self.__gen.send(v)
325325

326326
def throw(self, *args):
327+
self.fi_future = None
327328
return self.__gen.throw(*args)
328329

329330
def close(self):
331+
self.fi_future = None
330332
self.__gen.close()
331333

332334

0 commit comments

Comments
 (0)