From 0593119352b24c0372c0bd222641789c01fc4c5c Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 21 Aug 2020 14:38:57 +0200 Subject: #999 Fix ogClient session command Disconnect gracefully from ogServer after booting OS, the script to start the OS calls kexec, so everything is gone after it. For Windows, this results in a reboot. This commit also improves the disconnect function to make sure the disconnection is synchronous. --- src/ogRest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ogRest.py') 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: -- cgit v1.2.3-18-g5258