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
|
try
|
||||||
{
|
{
|
||||||
webClient.Headers.Add("Authorization", conf.LoadBalancerAuthKey);
|
using(WebClient wc = new WebClient()){
|
||||||
await webClient.DownloadStringTaskAsync($"http://{conf.LoadBalancerAddress}:{conf.LoadBalancerPort}/api/roomsupdated");
|
wc.Headers.Add("Authorization", conf.LoadBalancerAuthKey);
|
||||||
|
await wc.DownloadStringTaskAsync($"http://{conf.LoadBalancerAddress}:{conf.LoadBalancerPort}/api/roomsupdated");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch { } // LLB might be down, ignore.
|
catch { } // LLB might be down, ignore.
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue