check internet connection

This commit is contained in:
Kyle Spearrin 2019-06-03 23:12:54 -04:00
parent eadba95d5f
commit 44530b63ca

View file

@ -308,6 +308,10 @@ namespace Bit.App
{ {
return; return;
} }
if(Xamarin.Essentials.Connectivity.NetworkAccess == Xamarin.Essentials.NetworkAccess.None)
{
return;
}
Task.Run(async () => Task.Run(async () =>
{ {
var lastSync = await _syncService.GetLastSyncAsync(); var lastSync = await _syncService.GetLastSyncAsync();