Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek-R-S committed Apr 20, 2021
1 parent db546e5 commit 71d1ba4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ public async void UpdateLoadbalancerServers()
{
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.
}
Expand Down

0 comments on commit 71d1ba4

Please sign in to comment.