con.disconnect canfreeze i network is down

so when pressing control+C, exit immediatly
This commit is contained in:
Yann Leboulanger 2004-05-01 20:58:49 +00:00
parent bc63bc73b7
commit d07aec7c70

View file

@ -475,9 +475,6 @@ def start():
gc.mainLoop() gc.mainLoop()
except KeyboardInterrupt: except KeyboardInterrupt:
print "Keyboard Interrupt : Bye!" print "Keyboard Interrupt : Bye!"
for con in gc.connexions.keys():
if gc.connected[gc.connexions[con]]:
con.disconnect()
gc.hub.sendPlugin('QUIT', None, ()) gc.hub.sendPlugin('QUIT', None, ())
return 0 return 0
# except: # except: