Skip to content

Commit

Permalink
Fix thread manager Done callback
Browse files Browse the repository at this point in the history
  • Loading branch information
grandsilence committed May 18, 2018
1 parent 7a641a7 commit 651b6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Leaf.Core/Threading/ThreadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ private void StartDoingWork(object args)
if (_threads != null && _threads.Count > 0)
_threads.Remove(Thread.CurrentThread);

// В завершение:
if (activeThreads > 0 || IsWorking)
if (activeThreads > 0)
return;

IsWorking = false;
Expand All @@ -188,6 +187,7 @@ private void StartDoingWork(object args)

private bool _disposed; // Для определения избыточных вызовов

/// <inheritdoc cref="Dispose()"/>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
Expand Down

0 comments on commit 651b6cf

Please sign in to comment.