mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Use HttpTimeout for WCF timeout
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user