Added proper disconnect on shutdown and reboot
This commit is contained in:
parent
2e4d744e2c
commit
d8669baf95
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue