Kaydet (Commit) 55f87578 authored tarafından Ned Deily's avatar Ned Deily

Issue #13300: Fix IDLE Restart Shell command failure introduced by

3a5a0943b201.  Do not close listening socket on subprocess restart.
üst deb925fc
......@@ -459,6 +459,10 @@ class ModifiedInterpreter(InteractiveInterpreter):
threading.Thread(target=self.__request_interrupt).start()
def kill_subprocess(self):
try:
self.rpcclt.listening_sock.close()
except AttributeError: # no socket
pass
try:
self.rpcclt.close()
except AttributeError: # no socket
......
......@@ -534,10 +534,6 @@ class RPCClient(SocketIO):
def get_remote_proxy(self, oid):
return RPCProxy(self, oid)
def close(self):
self.listening_sock.close()
SocketIO.close(self)
class RPCProxy(object):
__methods = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment