Issue #13300: Fix IDLE Restart Shell command failure introduced by
3a5a0943b201. Do not close listening socket on subprocess restart.
This commit is contained in:
parent
deb925fc14
commit
55f87578a1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue