mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 14:54:15 +01:00
fix nullable cancellationtoken
This commit is contained in:
parent
cf6b89454b
commit
c5c43e8696
1 changed files with 2 additions and 2 deletions
|
|
@ -206,7 +206,7 @@ namespace MareSynchronos.WebAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task InitializeData(CancellationToken? token)
|
private async Task InitializeData(CancellationToken token)
|
||||||
{
|
{
|
||||||
if (_mareHub == null) return;
|
if (_mareHub == null) return;
|
||||||
Logger.Debug("Initializing data");
|
Logger.Debug("Initializing data");
|
||||||
|
|
@ -284,7 +284,7 @@ namespace MareSynchronos.WebAPI
|
||||||
{
|
{
|
||||||
Logger.Info("Connection restored");
|
Logger.Info("Connection restored");
|
||||||
await Task.Delay(TimeSpan.FromSeconds(new Random().Next(5, 10)));
|
await Task.Delay(TimeSpan.FromSeconds(new Random().Next(5, 10)));
|
||||||
await InitializeData(null);
|
await InitializeData(_connectionCancellationTokenSource.Token);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Task MareHubOnReconnecting(Exception? arg)
|
private Task MareHubOnReconnecting(Exception? arg)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue