XSockets / XSockets.Clients

Realtime clients for XSockets.NET 4.*
MIT License
11 stars 9 forks source link

Update Network State check in Network.Android.cs #17

Closed davehutchy closed 7 years ago

davehutchy commented 7 years ago

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)

uffebjorklund commented 7 years ago

Thanks @davehutchy Will take a look and merge this a.s.a.p Cheers, Uffe