diff --git a/PowerThreadPool/Work.cs b/PowerThreadPool/Work.cs index af9752e..4508a70 100644 --- a/PowerThreadPool/Work.cs +++ b/PowerThreadPool/Work.cs @@ -33,7 +33,6 @@ internal class Work : WorkBase private Func function; private object[] param; private WorkOption workOption; - private bool succeed = true; private CallbackEndEventHandler callbackEndHandler; internal override int WorkPriority { get => workOption.WorkPriority; } @@ -58,7 +57,6 @@ public Work(PowerPool powerPool, string id, Func function, ob if (powerPool.failedWorkSet.Contains(dependedId)) { powerPool.CallbackEnd -= callbackEndHandler; - this.succeed = false; Interlocked.Decrement(ref powerPool.waitingWorkCount); powerPool.CheckPoolIdle(); return; @@ -86,7 +84,6 @@ public Work(PowerPool powerPool, string id, Func function, ob if (powerPool.failedWorkSet.Contains(dependedId)) { powerPool.CallbackEnd -= callbackEndHandler; - this.succeed = false; Interlocked.Decrement(ref powerPool.waitingWorkCount); powerPool.CheckPoolIdle(); return;