potential fix for automatic reconnects
This commit is contained in:
		| @@ -267,6 +267,7 @@ public partial class ApiController : IDisposable, IMareHubClient | |||||||
|             Logger.Debug("Checked Client Health State, healthy: " + !needsRestart); |             Logger.Debug("Checked Client Health State, healthy: " + !needsRestart); | ||||||
|             if (needsRestart) |             if (needsRestart) | ||||||
|             { |             { | ||||||
|  |                 ServerState = ServerState.Offline; | ||||||
|                 _ = CreateConnections(); |                 _ = CreateConnections(); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| @@ -380,7 +381,6 @@ public partial class ApiController : IDisposable, IMareHubClient | |||||||
|             await _mareHub.DisposeAsync().ConfigureAwait(false); |             await _mareHub.DisposeAsync().ConfigureAwait(false); | ||||||
|             CurrentUploads.Clear(); |             CurrentUploads.Clear(); | ||||||
|             CurrentDownloads.Clear(); |             CurrentDownloads.Clear(); | ||||||
|             _uploadCancellationTokenSource?.Cancel(); |  | ||||||
|             Disconnected?.Invoke(); |             Disconnected?.Invoke(); | ||||||
|             _mareHub = null; |             _mareHub = null; | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stanley Dimant
					Stanley Dimant