diff options
author | Alvaro Neira Ayuso <aneira@soleta.eu> | 2019-12-28 17:30:37 +0100 |
---|---|---|
committer | Alvaro Neira Ayuso <alvaroneay@gmail.com> | 2020-01-19 19:50:44 +0100 |
commit | af903503a2424994f58a3adc42597451df569c65 (patch) | |
tree | d043294c85e0b450333bfefe1e87b24a589f0225 | |
parent | b571f40482c478af78da7014415e6d95c2a6a8a7 (diff) |
Modify Thread methods names
This patch modifies the method names to use names more clear.
-rw-r--r-- | src/ogRest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index 80f6acd..c21fcbb 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -15,12 +15,12 @@ class ogThread(): msgqueue.put(ogOperations.execCMD(cmd)) # Powering off thread - def pwoff(): + def poweroff(): time.sleep(2) ogOperations.poweroff() # Rebooting thread - def rebt(): + def reboot(): ogOperations.reboot() class ogResponses(Enum): @@ -81,12 +81,12 @@ class ogRest(): def process_reboot(self, client): client.send(self.getResponse(ogResponses.IN_PROGRESS)) client.disconnect() - threading.Thread(target=ogThread.rebt).start() + threading.Thread(target=ogThread.reboot).start() def process_poweroff(self, client): client.send(self.getResponse(ogResponses.IN_PROGRESS)) client.disconnect() - threading.Thread(target=ogThread.pwoff).start() + threading.Thread(target=ogThread.poweroff).start() def process_probe(self, client): client.send(self.getResponse(ogResponses.OK)) |