#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.
more_events
OpenGnSys Support Team 2021-07-15 11:41:52 +02:00
parent c61964fa85
commit 082079ad78
1 changed files with 1 additions and 1 deletions

View File

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