mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Fix issue cancelling Provider reconnection loop while a connection job was running
This commit is contained in:
@@ -312,16 +312,18 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
await jobManager.WaitForJobCompletion(job, null, cancellationToken, default);
|
||||
}
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
catch (OperationCanceledException e)
|
||||
{
|
||||
break;
|
||||
Logger.LogTrace(e, "ReconnectionLoop cancelled");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.LogError(e, "Error reconnecting!");
|
||||
}
|
||||
}
|
||||
while (true);
|
||||
while (!cancellationToken.IsCancellationRequested);
|
||||
|
||||
Logger.LogTrace("ReconnectionLoop exiting...");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user