Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Freezing when internet is turned off but still device is connected to wi-fi network #89

Open
tejasriram13 opened this issue Sep 20, 2023 · 1 comment

Comments

@tejasriram13
Copy link

Our app use-case contains where we are dispatching messages on Web socket every X seconds.

If we disconnect the app from internet (Using a mobile hotspot and turning off the internet source without turning off the mobile hotspot), then app is freezing after sometime.

Our observation from logs:

  • When internet connection is turned off, Websocket state is still being returned as Open, instead of Closed
  • So, the messages are still trying to be dispatched on Websocket and after sometime, the task at this line is causing app freeze -

Please let me know how to overcome this issue.

@talhaArthur
Copy link

talhaArthur commented Oct 24, 2023

I have published a pull request that fixes this exact issue. You can try that
FixedApplicationFreezeIssueOnInternetDisconnect #90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants