Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #270 from aspriddell/fix-logic
Browse files Browse the repository at this point in the history
fix incorrect logic check
  • Loading branch information
aspriddell authored Dec 3, 2021
2 parents d2dc94c + c1b715f commit 51e39ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DragonFruit.Six.Api/Dragon6Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ internal void ValidateToken()
{
lock (_lock)
{
if (Token?.Expired != true)
if (Token is null || Token.Expired)
{
// todo throw something if this is majorly expired or null
Token = GetToken();
Expand Down

0 comments on commit 51e39ec

Please sign in to comment.