mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
small fixes
This commit is contained in:
parent
c2e92c094c
commit
1fee097481
5 changed files with 60 additions and 26 deletions
|
|
@ -157,8 +157,11 @@ public class CachedPlayer
|
|||
while ((toDownloadReplacements = TryCalculateModdedDictionary(out moddedPaths)).Count > 0 && attempts++ <= 10)
|
||||
{
|
||||
Logger.Debug("Downloading missing files for player " + PlayerName + ", kind: " + objectKind);
|
||||
await _apiController.DownloadFiles(downloadId, toDownloadReplacements, downloadToken);
|
||||
_apiController.CancelDownload(downloadId);
|
||||
if (toDownloadReplacements.Any())
|
||||
{
|
||||
await _apiController.DownloadFiles(downloadId, toDownloadReplacements, downloadToken);
|
||||
_apiController.CancelDownload(downloadId);
|
||||
}
|
||||
if (downloadToken.IsCancellationRequested)
|
||||
{
|
||||
Logger.Verbose("Detected cancellation");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue