diff --git a/ValorantCC/ValorantCC.csproj b/ValorantCC/ValorantCC.csproj index 0702ca4..747bf8b 100644 --- a/ValorantCC/ValorantCC.csproj +++ b/ValorantCC/ValorantCC.csproj @@ -14,7 +14,7 @@ false - 3.1.5 + 3.1.6 true diff --git a/ValorantCC/src/BackgroundAuth.cs b/ValorantCC/src/BackgroundAuth.cs index 451811f..133c812 100644 --- a/ValorantCC/src/BackgroundAuth.cs +++ b/ValorantCC/src/BackgroundAuth.cs @@ -97,6 +97,7 @@ public async void LoopCheck() public async Task LoginFlagExists() { + if (_lockfileData == null) return false; RestClient wsClient = new RestClient(new RestClientOptions() { RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true }); wsClient.Authenticator = new RestSharp.Authenticators.HttpBasicAuthenticator("riot",_lockfileData.Key); RestRequest entitlementsReq = new RestRequest($"{_lockfileData.Protocol}://127.0.0.1:{_lockfileData.Port}/entitlements/v1/token");