From ba40448e7d17a4e761d096975cc74ccbc6dc0cf7 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 21 Jul 2016 19:20:39 +0200 Subject: [PATCH] Correct workaround for bug 41701 It's fixed since 4.5.3 onwards: https://github.com/mono/mono/commit/e62c5b001d767a390986591f6eec22c31cac136d --- ArchiSteamFarm/Runtime.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Runtime.cs b/ArchiSteamFarm/Runtime.cs index 2435dd4f9..6447d8380 100644 --- a/ArchiSteamFarm/Runtime.cs +++ b/ArchiSteamFarm/Runtime.cs @@ -56,6 +56,7 @@ namespace ArchiSteamFarm { } } + // TODO: Remove me once Mono 4.6 is released internal static bool RequiresWorkaroundForMonoBug41701() { // Mono only, https://bugzilla.xamarin.com/show_bug.cgi?id=41701 if (!IsRunningOnMono) { @@ -67,7 +68,7 @@ namespace ArchiSteamFarm { return false; } - return monoVersion >= new Version(4, 4); + return (monoVersion >= new Version(4, 4)) && (monoVersion <= new Version(4, 5, 2)); } private static Version GetMonoVersion() {