You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Float.Core/Extensions/Exception.extensions.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,13 @@ public static bool IsOfflineException(this Exception e)
37
37
returntrue;
38
38
}
39
39
40
+
// On Android, the message might literally be "Connection failure"
41
+
// (see https://github.com/dotnet/android/blob/688245d397097fbc8e70fd291abe11143f1c3553/src/Mono.Android/Xamarin.Android.Net/AndroidMessageHandler.cs#L577)
42
+
if(e.Message=="Connection failure")
43
+
{
44
+
returntrue;
45
+
}
46
+
40
47
// we sometimes get a webexception status of NameResolutionFailure that we don't have access to, but its enum value is one
0 commit comments