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

Force close if App is disconnected to internet #13

Open
punitshah89 opened this issue Oct 29, 2014 · 0 comments
Open

Force close if App is disconnected to internet #13

punitshah89 opened this issue Oct 29, 2014 · 0 comments

Comments

@punitshah89
Copy link

Hi,
First of all thank you for Secured WebSockets Project. It is really helpful. I found one issue with this project.

After connection opened, turn of WIFI. It tries to reconnect the app to WebSockets using scheduleReconnect() method and in method mSocket returns Null thats why app crashes with NullPointerException.

Just added this code to scheduleReconnect() method to avoid crash

if(mSocket==null)
return true;

Can you suggest any better solution or is this fine ?

Thanks,
Punit

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

1 participant