mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Merge branch 'master' of git://github.com/kayone/NzbDrone
This commit is contained in:
commit
13d947d24d
@ -1,4 +1,5 @@
|
|||||||
using System;
|
//https://github.com/kayone/NzbDrone/blob/master/NzbDrone.Core/Providers/Jobs/JobProvider.cs
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
@ -201,6 +202,7 @@ private void ProcessQueue()
|
|||||||
if (Queue.Count != 0)
|
if (Queue.Count != 0)
|
||||||
{
|
{
|
||||||
job = Queue.First();
|
job = Queue.First();
|
||||||
|
Queue.Remove(job);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,13 +216,6 @@ private void ProcessQueue()
|
|||||||
{
|
{
|
||||||
Logger.FatalException("An error has occurred while processing queued job.", e);
|
Logger.FatalException("An error has occurred while processing queued job.", e);
|
||||||
}
|
}
|
||||||
finally
|
|
||||||
{
|
|
||||||
if (job != null)
|
|
||||||
{
|
|
||||||
Queue.Remove(job);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (Queue.Count != 0);
|
} while (Queue.Count != 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user