mirror of https://git.48k.eu/ogclient
#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
parent
c61964fa85
commit
082079ad78
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue