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