Fix unsetting attemptLoginRefresh

- It previously did nothing
This commit is contained in:
Jordan Brown
2020-12-16 18:47:42 -05:00
parent 01d4a05c0d
commit 68e426bb81
@@ -62,6 +62,9 @@ namespace Tgstation.Server.Client
token = await api.Update<Token>(Routes.Root, cancellationToken).ConfigureAwait(false);
}
if (!attemptLoginRefresh)
loginHeaders = null;
var apiHeaders = new ApiHeaders(productHeaderValue, token.Bearer!);
var client = new ServerClient(ApiClientFactory.CreateApiClient(host, apiHeaders, loginHeaders), token);