Skip to content

Commit

Permalink
Use URL
Browse files Browse the repository at this point in the history
  • Loading branch information
drasticactions committed Nov 22, 2023
1 parent 00ba744 commit 179f4f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FishyFlip/ATProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public Task StopSubscriptionAsync(CancellationToken? token = default)
public void UpdateOptions(ATProtocolOptions options)
{
this.options = options;
this.options.UpdateHttpClient(options.Url);
this.client = options.HttpClient ?? throw new NullReferenceException(nameof(options.HttpClient));
this.webSocketProtocol.Dispose();
this.sessionManager.Dispose();
Expand Down Expand Up @@ -248,8 +249,8 @@ internal void OnUserLoggedIn(Session session)
else
{
this.Options.Url = uriResult;
logger?.LogInformation($"UseServiceEndpointUponLogin enabled, switching to {uriResult}.");
this.Options.Session = session;
logger?.LogInformation($"UseServiceEndpointUponLogin enabled, switching to {uriResult}.");
this.UpdateOptions(this.Options);
return;
}
Expand Down

0 comments on commit 179f4f8

Please sign in to comment.