diff options
author | Roberto Hueso Gomez <robertohueso96@gmail.com> | 2020-04-13 15:16:52 +0200 |
---|---|---|
committer | Roberto Hueso Gomez <robertohueso96@gmail.com> | 2020-04-13 15:16:52 +0200 |
commit | f56065a4385c8c97dfe477fe0f580b2077ac6195 (patch) | |
tree | cbe8c73484941ec82c8cf1dfc95c0d9579478d3e | |
parent | 0ddf3f287a88f7e125642b42f5f827629b284af1 (diff) |
Fix reboot and poweroff threads args
-rw-r--r-- | src/ogRest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index a75aeab..cf15c6e 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -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() |