Put state to IDLE after run/schedule

more_events
Roberto Hueso Gómez 2020-03-02 14:02:09 +01:00 committed by Alvaro Neira Ayuso
parent b53f8d0f8f
commit 4e1ad0f949
1 changed files with 1 additions and 0 deletions

View File

@ -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()