mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-05-17 23:09:30 +00:00
catches purchase-not-found exception
# Conflicts: # Tools/AutoClient/LoadBalancer.cs
This commit is contained in:
parent
ccd6dc6e51
commit
75a8078f06
@ -65,7 +65,8 @@ namespace AutoClient
|
||||
{
|
||||
while (running)
|
||||
{
|
||||
while (queue.Count == 0) Thread.Sleep(TimeSpan.FromSeconds(1.0));
|
||||
while (running && queue.Count == 0) Thread.Sleep(TimeSpan.FromSeconds(1.0));
|
||||
if (!running) return;
|
||||
|
||||
Action<CodexWrapper> action = w => { };
|
||||
lock (queueLock)
|
||||
|
||||
@ -163,7 +163,15 @@ namespace AutoClient.Modes.FolderStore
|
||||
|
||||
private StoragePurchase? GetPurchase(string purchaseId)
|
||||
{
|
||||
return instance.GetStoragePurchase(purchaseId);
|
||||
try
|
||||
{
|
||||
return instance.GetStoragePurchase(purchaseId);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
log.Error("Failed to get purchase: " + exc);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private bool NodeContainsBasicCid()
|
||||
|
||||
@ -40,6 +40,7 @@ namespace AutoClient.Modes.FolderStore
|
||||
{
|
||||
if (app.Cts.IsCancellationRequested) return;
|
||||
loadBalancer.CheckErrors();
|
||||
slowModeHandler.Check();
|
||||
|
||||
if (!folderFile.ToLowerInvariant().EndsWith(FolderSaverFilename))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user