From 2f1b6311ac9fbdf3ee233dfa58c9b2757bc139c0 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 29 Dec 2016 10:40:35 +0100 Subject: [PATCH] Use HttpTimeout for WCF timeout --- ArchiSteamFarm/WCF.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/WCF.cs b/ArchiSteamFarm/WCF.cs index 6cf1f9427..f1457b949 100644 --- a/ArchiSteamFarm/WCF.cs +++ b/ArchiSteamFarm/WCF.cs @@ -102,7 +102,7 @@ namespace ArchiSteamFarm { // We use SecurityMode.None for Mono compatibility // Yes, also on Windows, for Mono<->Windows communication Security = { Mode = SecurityMode.None }, - SendTimeout = new TimeSpan(0, 5, 0) + SendTimeout = new TimeSpan(0, 0, Program.GlobalConfig.HttpTimeout) }, new EndpointAddress(URL) ); @@ -126,7 +126,7 @@ namespace ArchiSteamFarm { // We use SecurityMode.None for Mono compatibility // Yes, also on Windows, for Mono<->Windows communication Security = { Mode = SecurityMode.None }, - SendTimeout = new TimeSpan(0, 5, 0) + SendTimeout = new TimeSpan(0, 0, Program.GlobalConfig.HttpTimeout) }, string.Empty );