mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 18:44:14 +01:00
cleanup
This commit is contained in:
parent
af7dd239aa
commit
e31c232f79
7 changed files with 24 additions and 43 deletions
|
|
@ -37,7 +37,7 @@ namespace MareSynchronos.WebAPI
|
|||
|
||||
private HubConnection? _mareHub;
|
||||
|
||||
private CancellationTokenSource? _uploadToken = new();
|
||||
private CancellationTokenSource? _uploadCancellationTokenSource = new();
|
||||
|
||||
private ConnectionDto? _connectionDto;
|
||||
public SystemInfoDto SystemInfoDto { get; private set; } = new();
|
||||
|
|
@ -268,7 +268,7 @@ namespace MareSynchronos.WebAPI
|
|||
{
|
||||
CurrentUploads.Clear();
|
||||
CurrentDownloads.Clear();
|
||||
_uploadToken?.Cancel();
|
||||
_uploadCancellationTokenSource?.Cancel();
|
||||
Logger.Debug("Connection closed");
|
||||
Disconnected?.Invoke();
|
||||
return Task.CompletedTask;
|
||||
|
|
@ -286,7 +286,7 @@ namespace MareSynchronos.WebAPI
|
|||
{
|
||||
CurrentUploads.Clear();
|
||||
CurrentDownloads.Clear();
|
||||
_uploadToken?.Cancel();
|
||||
_uploadCancellationTokenSource?.Cancel();
|
||||
Logger.Debug("Connection closed... Reconnecting");
|
||||
Disconnected?.Invoke();
|
||||
return Task.CompletedTask;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue