summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-03-02 14:02:09 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-03-03 14:13:10 +0100
commit4e1ad0f949bda71a4c490b2df577a4db88911ca0 (patch)
tree2f9957ace735004464b65b5721222ffac9c75eff
parentb53f8d0f8f3daa51f6d2bf87c2fc2096c6bbdf78 (diff)
Put state to IDLE after run/schedule
-rw-r--r--src/ogRest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index a35ff5d..b80b9e7 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -357,6 +357,7 @@ class ogRest():
def process_schedule(self, client):
response = restResponse(ogResponses.OK)
client.send(response.get())
+ self.state = ThreadState.IDLE
def process_setup(self, client, request):
threading.Thread(target=ogThread.setup, args=(client, request, self,)).start()