Skip to content

Commit

Permalink
Fix #59
Browse files Browse the repository at this point in the history
  • Loading branch information
floh22 committed Aug 22, 2021
1 parent 41a0bf5 commit 51919ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion LeagueBroadcast/Common/Controllers/AppStateController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,13 @@ private async Task<LeagueClientApi> ConnectToClient()
Log.Info($"Connected to League Client in {stopwatch.ElapsedMilliseconds} ms");

State.LeagueConntected();
LocalGameVersion = GetLocalGameVersion(await api.RequestHandler.GetResponseAsync<string>(HttpMethod.Get, "/lol-patch/v1/game-version"));

string res = null;
while(res is null)
{
res = await api.RequestHandler.GetResponseAsync<string>(HttpMethod.Get, "/lol-patch/v1/game-version");
}
LocalGameVersion = GetLocalGameVersion(res);
LoadOffsets();

return api;
Expand Down

0 comments on commit 51919ad

Please sign in to comment.