con.disconnect canfreeze i network is down
so when pressing control+C, exit immediatly
This commit is contained in:
parent
bc63bc73b7
commit
d07aec7c70
|
@ -475,9 +475,6 @@ def start():
|
|||
gc.mainLoop()
|
||||
except KeyboardInterrupt:
|
||||
print "Keyboard Interrupt : Bye!"
|
||||
for con in gc.connexions.keys():
|
||||
if gc.connected[gc.connexions[con]]:
|
||||
con.disconnect()
|
||||
gc.hub.sendPlugin('QUIT', None, ())
|
||||
return 0
|
||||
# except:
|
||||
|
|
Loading…
Reference in New Issue