Revert "Test"

This reverts commit 06b6a7ce16.
This commit is contained in:
JustArchi
2017-09-26 06:31:07 +02:00
parent 1b11e9e65c
commit f36e6cace4
2 changed files with 0 additions and 7 deletions

View File

@@ -174,15 +174,12 @@ namespace ArchiSteamFarm {
return null; return null;
} }
ASF.ArchiLogger.LogGenericDebug("Checking for websockets support!");
if (globalConfig.SteamProtocols.HasFlag(ProtocolTypes.WebSocket) && !OS.SupportsWebSockets()) { if (globalConfig.SteamProtocols.HasFlag(ProtocolTypes.WebSocket) && !OS.SupportsWebSockets()) {
ASF.ArchiLogger.LogGenericDebug("Disabling websockets!");
globalConfig.SteamProtocols &= ProtocolTypes.WebSocket; globalConfig.SteamProtocols &= ProtocolTypes.WebSocket;
if (globalConfig.SteamProtocols == 0) { if (globalConfig.SteamProtocols == 0) {
globalConfig.SteamProtocols = ProtocolTypes.Tcp; globalConfig.SteamProtocols = ProtocolTypes.Tcp;
} }
} }
ASF.ArchiLogger.LogGenericDebug("Done!");
GlobalConfig result = globalConfig; GlobalConfig result = globalConfig;
return result; return result;

View File

@@ -50,13 +50,9 @@ namespace ArchiSteamFarm {
internal static bool SupportsWebSockets() { internal static bool SupportsWebSockets() {
try { try {
using (new ClientWebSocket()) { using (new ClientWebSocket()) {
ASF.ArchiLogger.LogGenericDebug("Inside using!");
new ClientWebSocket().Dispose();
ASF.ArchiLogger.LogGenericDebug("Returning true!");
return true; return true;
} }
} catch (PlatformNotSupportedException) { } catch (PlatformNotSupportedException) {
ASF.ArchiLogger.LogGenericDebug("Returning false!");
return false; return false;
} }
} }