Use HttpTimeout for WCF timeout

This commit is contained in:
JustArchi
2016-12-29 10:40:35 +01:00
parent 2c1127e57b
commit 2f1b6311ac

View File

@@ -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
);