con.disconnect canfreeze i network is down
so when pressing control+C, exit immediatly
This commit is contained in:
parent
bc63bc73b7
commit
d07aec7c70
1 changed files with 0 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue