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

3a5a0943b201.  Do not close listening socket on subprocess restart.
This commit is contained in:
Ned Deily 2011-11-05 22:36:44 -07:00
parent deb925fc14
commit 55f87578a1
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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