diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ogClient.py | 1 | ||||
-rw-r--r-- | src/ogRest.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ogClient.py b/src/ogClient.py index b148b74..46ab9a2 100644 --- a/src/ogClient.py +++ b/src/ogClient.py @@ -119,6 +119,7 @@ class ogClient: def disconnect(self): self.state = State.FORCE_DISCONNECTED + self.sock.shutdown(socket.SHUT_RDWR) self.sock.close() def run(self): diff --git a/src/ogRest.py b/src/ogRest.py index 1bc82a1..7e6d276 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -120,7 +120,7 @@ class ogThread(): response = restResponse(ogResponses.OK) client.send(response.get()) - ogRest.state = ThreadState.IDLE + client.disconnect() def software(client, request, path, ogRest): try: |