mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Retry CDN login
This commit is contained in:
parent
ba9c4e45e4
commit
b13b597c80
@ -26,9 +26,12 @@ namespace Wabbajack.Server.DTOs
|
||||
|
||||
public async Task<FtpClient> GetClient()
|
||||
{
|
||||
var ftpClient = new FtpClient(Hostname, new NetworkCredential(Username, Password));
|
||||
await ftpClient.ConnectAsync();
|
||||
return ftpClient;
|
||||
return await CircuitBreaker.WithAutoRetryAllAsync(async () =>
|
||||
{
|
||||
var ftpClient = new FtpClient(Hostname, new NetworkCredential(Username, Password));
|
||||
await ftpClient.ConnectAsync();
|
||||
return ftpClient;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user