You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: