Fix an oopsie
This commit is contained in:
parent
508e031143
commit
cc1d2b423f
@ -181,7 +181,7 @@ namespace LibationWinForms.ProcessQueue
|
|||||||
|
|
||||||
public bool MoveNext()
|
public bool MoveNext()
|
||||||
{
|
{
|
||||||
int queuedCount, completedCount = 0;
|
int completedCount = 0, queuedCount = 0;
|
||||||
bool completedChanged = false;
|
bool completedChanged = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -208,8 +208,8 @@ namespace LibationWinForms.ProcessQueue
|
|||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
if (completedChanged)
|
if (completedChanged)
|
||||||
CompletedCountChanged?.Invoke(this, _completed.Count);
|
CompletedCountChanged?.Invoke(this, completedCount);
|
||||||
QueuededCountChanged?.Invoke(this, _queued.Count);
|
QueuededCountChanged?.Invoke(this, queuedCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user