From 711d573e28e83ce474820fa89f673c8e1edcebf9 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 11 Dec 2016 18:16:55 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/WCF.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/WCF.cs b/ArchiSteamFarm/WCF.cs index 0dfc4bc5c..1e71aeb06 100644 --- a/ArchiSteamFarm/WCF.cs +++ b/ArchiSteamFarm/WCF.cs @@ -26,7 +26,6 @@ using System; using System.Linq; using System.ServiceModel; using System.ServiceModel.Channels; -using System.ServiceModel.Description; namespace ArchiSteamFarm { [ServiceContract] @@ -69,7 +68,10 @@ namespace ArchiSteamFarm { } string command = "!" + input; - string output = bot.Response(Program.GlobalConfig.SteamOwnerID, command).Result; // TODO: This should be asynchronous + + // TODO: This should be asynchronous, but for some reason Mono doesn't return any WCF output if it is + // We must keep it synchronous until either Mono gets fixed, or culprit for freeze located (and corrected) + string output = bot.Response(Program.GlobalConfig.SteamOwnerID, command).Result; ASF.ArchiLogger.LogGenericInfo("Answered to command: " + input + " with: " + output); return output;