From f36e6cace487df2a9eb26ec6dbf3059690777c23 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 26 Sep 2017 06:31:07 +0200 Subject: [PATCH] Revert "Test" This reverts commit 06b6a7ce16b6abae4569a2c5eb3450407704e58c. --- ArchiSteamFarm/GlobalConfig.cs | 3 --- ArchiSteamFarm/OS.cs | 4 ---- 2 files changed, 7 deletions(-) diff --git a/ArchiSteamFarm/GlobalConfig.cs b/ArchiSteamFarm/GlobalConfig.cs index 73919d575..c712d5452 100644 --- a/ArchiSteamFarm/GlobalConfig.cs +++ b/ArchiSteamFarm/GlobalConfig.cs @@ -174,15 +174,12 @@ namespace ArchiSteamFarm { return null; } - ASF.ArchiLogger.LogGenericDebug("Checking for websockets support!"); if (globalConfig.SteamProtocols.HasFlag(ProtocolTypes.WebSocket) && !OS.SupportsWebSockets()) { - ASF.ArchiLogger.LogGenericDebug("Disabling websockets!"); globalConfig.SteamProtocols &= ProtocolTypes.WebSocket; if (globalConfig.SteamProtocols == 0) { globalConfig.SteamProtocols = ProtocolTypes.Tcp; } } - ASF.ArchiLogger.LogGenericDebug("Done!"); GlobalConfig result = globalConfig; return result; diff --git a/ArchiSteamFarm/OS.cs b/ArchiSteamFarm/OS.cs index 5cfa301be..28f0e86e4 100644 --- a/ArchiSteamFarm/OS.cs +++ b/ArchiSteamFarm/OS.cs @@ -50,13 +50,9 @@ namespace ArchiSteamFarm { internal static bool SupportsWebSockets() { try { using (new ClientWebSocket()) { - ASF.ArchiLogger.LogGenericDebug("Inside using!"); - new ClientWebSocket().Dispose(); - ASF.ArchiLogger.LogGenericDebug("Returning true!"); return true; } } catch (PlatformNotSupportedException) { - ASF.ArchiLogger.LogGenericDebug("Returning false!"); return false; } }