mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #23209: Break some reference cycles in asyncio. Patch written by Martin
Richard.
This commit is contained in:
parent
70db9e428a
commit
587feb19e8
3 changed files with 3 additions and 1 deletions
|
@ -182,6 +182,7 @@ class WriteSubprocessPipeProto(protocols.BaseProtocol):
|
|||
def connection_lost(self, exc):
|
||||
self.disconnected = True
|
||||
self.proc._pipe_connection_lost(self.fd, exc)
|
||||
self.proc = None
|
||||
|
||||
def pause_writing(self):
|
||||
self.proc._protocol.pause_writing()
|
||||
|
|
|
@ -405,5 +405,5 @@ def wrap_future(fut, *, loop=None):
|
|||
new_future.add_done_callback(_check_cancel_other)
|
||||
fut.add_done_callback(
|
||||
lambda future: loop.call_soon_threadsafe(
|
||||
new_future._copy_state, fut))
|
||||
new_future._copy_state, future))
|
||||
return new_future
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue