Skip to content

Force close if App is disconnected to internet #13

@punitshah89

Description

@punitshah89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions