If the Network state was changed to offline before the NetworkStatusBroadcastReceiver received event, the socket would not disconnect because the state was already offline. this fixes that issue by moving the network state check, to the UpdateAndroidNetworkStatus method.
Now the network state will be updated to its correct state and is not relying on the NetworkStatusBroadcastReciever to fire event (which in some cases can take up to 10 seconds)
If the Network state was changed to offline before the NetworkStatusBroadcastReceiver received event, the socket would not disconnect because the state was already offline. this fixes that issue by moving the network state check, to the UpdateAndroidNetworkStatus method. Now the network state will be updated to its correct state and is not relying on the NetworkStatusBroadcastReciever to fire event (which in some cases can take up to 10 seconds)