diff options
Diffstat (limited to 'src/ogRest.py')
-rw-r--r-- | src/ogRest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index c50adfa..d9d6f4a 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -300,6 +300,7 @@ class ogRest(): f'{method[:ogRest.LOG_LENGTH]}') response = restResponse(ogResponses.BAD_REQUEST) client.send(response.get()) + self.state = ThreadState.IDLE elif ("POST" in method): if ("poweroff" in URI): self.process_poweroff(client) @@ -327,9 +328,11 @@ class ogRest(): f'{method[:ogRest.LOG_LENGTH]}') response = restResponse(ogResponses.BAD_REQUEST) client.send(response.get()) + self.state = ThreadState.IDLE else: response = restResponse(ogResponses.BAD_REQUEST) client.send(response.get()) + self.state = ThreadState.IDLE return 0 |