In case of a network connection failure, the app keeps trying to reconnect using the same session/token.
Often this results in a repeated errors thrown by the server apis.
Have a max-retry config, after which the background thread should exit.
This may also solve the other issue related to active thread trying to update state of a already destroyed button widget.
In case of a network connection failure, the app keeps trying to reconnect using the same session/token. Often this results in a repeated errors thrown by the server apis.
Have a max-retry config, after which the background thread should exit. This may also solve the other issue related to active thread trying to update state of a already destroyed button widget.