From 0a861078040e957d1e3418f17be60afe9952aec5 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 25 Jul 2016 06:53:16 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/WebBrowser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/WebBrowser.cs b/ArchiSteamFarm/WebBrowser.cs index e28ea53bb..325e7104a 100644 --- a/ArchiSteamFarm/WebBrowser.cs +++ b/ArchiSteamFarm/WebBrowser.cs @@ -55,10 +55,11 @@ namespace ArchiSteamFarm { ServicePointManager.Expect100Continue = false; #if !__MonoCS__ - // We run Windows-compiled ASF on both Windows and Mono and normally we'd simply put code in the if + // We run Windows-compiled ASF on both Windows and Mono. Normally we'd simply put code in the if // However, if we did that, then we would still crash on Mono due to potentially calling non-existing methods // Therefore, call mono-incompatible options in their own function to avoid that, and just leave the function call here // When compiling on Mono, this section is omitted entirely as we never run Mono-compiled ASF on Windows + // Moreover, Mono compiler doesn't even include ReusePort field in ServicePointManager, so it's crucial to avoid compilation error if (!Runtime.IsRunningOnMono) { InitNonMonoBehaviour(); }