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
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