summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoberto Hueso Gomez <robertohueso96@gmail.com>2020-04-13 15:16:52 +0200
committerRoberto Hueso Gomez <robertohueso96@gmail.com>2020-04-13 15:16:52 +0200
commitf56065a4385c8c97dfe477fe0f580b2077ac6195 (patch)
treecbe8c73484941ec82c8cf1dfc95c0d9579478d3e /src
parent0ddf3f287a88f7e125642b42f5f827629b284af1 (diff)
Fix reboot and poweroff threads args
Diffstat (limited to 'src')
-rw-r--r--src/ogRest.py4
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()