Fix reboot and poweroff threads args

more_events
Roberto Hueso Gomez 2020-04-13 15:16:52 +02:00
parent 0ddf3f287a
commit f56065a438
1 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ class ogRest():
if self.state == ThreadState.BUSY:
self.kill_process()
threading.Thread(target=ogThread.reboot, args=(self)).start()
threading.Thread(target=ogThread.reboot, args=(self,)).start()
def process_poweroff(self, client):
response = restResponse(ogResponses.IN_PROGRESS)
@ -334,7 +334,7 @@ class ogRest():
if self.state == ThreadState.BUSY:
self.kill_process()
threading.Thread(target=ogThread.poweroff, args=(self)).start()
threading.Thread(target=ogThread.poweroff, args=(self,)).start()
def process_probe(self, client):
json_body = jsonBody()