Two fixes:
1- Refresh the stream connection once a session is invalid (self._client.disconnect() has been replaced with self._disconnect() which disconnect both the client and stream)
2- Avoid multiple reconnect attempts if there are multiple INVALID_SESSION_INFORMATION errors in the current event queue
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
Pull Request
Two fixes: 1- Refresh the stream connection once a session is invalid (self._client.disconnect() has been replaced with self._disconnect() which disconnect both the client and stream) 2- Avoid multiple reconnect attempts if there are multiple INVALID_SESSION_INFORMATION errors in the current event queue
Type of change
How has this change been tested?
In Prod