mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Prevent queue errors from filling up UI with errors
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using NLog;
|
||||
using NzbDrone.Core.Download;
|
||||
|
||||
@@ -30,9 +31,17 @@ namespace NzbDrone.Core.Queue
|
||||
return new List<Queue>();
|
||||
}
|
||||
|
||||
var queueItems = downloadClient.GetQueue();
|
||||
try
|
||||
{
|
||||
var queueItems = downloadClient.GetQueue();
|
||||
|
||||
return MapQueue(queueItems);
|
||||
return MapQueue(queueItems);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error("Error getting queue from download client: " + downloadClient.ToString(), ex);
|
||||
return new List<Queue>();
|
||||
}
|
||||
}
|
||||
|
||||
private List<Queue> MapQueue(IEnumerable<QueueItem> queueItems)
|
||||
|
Reference in New Issue
Block a user