Update Program.cs
This commit is contained in:
parent
db546e5939
commit
71d1ba4c61
1 changed files with 4 additions and 2 deletions
|
|
@ -124,8 +124,10 @@ namespace LightReflectiveMirror
|
|||
{
|
||||
try
|
||||
{
|
||||
webClient.Headers.Add("Authorization", conf.LoadBalancerAuthKey);
|
||||
await webClient.DownloadStringTaskAsync($"http://{conf.LoadBalancerAddress}:{conf.LoadBalancerPort}/api/roomsupdated");
|
||||
using(WebClient wc = new WebClient()){
|
||||
wc.Headers.Add("Authorization", conf.LoadBalancerAuthKey);
|
||||
await wc.DownloadStringTaskAsync($"http://{conf.LoadBalancerAddress}:{conf.LoadBalancerPort}/api/roomsupdated");
|
||||
}
|
||||
}
|
||||
catch { } // LLB might be down, ignore.
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue