Added proper disconnect on shutdown and reboot

This commit is contained in:
PhilipTrauner 2016-04-10 00:53:33 +02:00
parent 2e4d744e2c
commit d8669baf95

View file

@ -63,12 +63,12 @@ class WallabyControl(Routing.ClientRoute):
def reboot(self, handler):
self.stop(handler)
self.disconnect(handler)
os.system("reboot")
exit(0)
def shutdown(self, handler):
self.stop(handler)
self.disconnect(handler)
os.system("shutdown -h 0")
def disconnect(self, handler):