diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-07-15 11:41:52 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-07-15 13:08:51 +0200 |
commit | 082079ad78979efc163f785811dfd56deb078059 (patch) | |
tree | d418d51d53c238172b897dc4dd40ea282d5ae012 | |
parent | c61964fa8573572be6812653453efc8da630e521 (diff) |
#1056 stop request processing on connection closure
If server closes the connection, close the socket, reconnect and stop
processing. self.connect() already cleans up the internal state, including the
socket state.
-rw-r--r-- | src/ogClient.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ogClient.py b/src/ogClient.py index 1457575..3f9ad63 100644 --- a/src/ogClient.py +++ b/src/ogClient.py @@ -99,9 +99,9 @@ class ogClient: print('failed to received ' + str(err)) if len(data) == 0: - self.state = State.CONNECTING self.sock.close() self.connect() + return self.data = self.data + data request = restRequest() |