1 parent 72f5ef3 commit 8bcbce5Copy full SHA for 8bcbce5
1 file changed
src/main/kotlin/com/lambda/task/Task.kt
@@ -204,8 +204,8 @@ abstract class Task<Result> : Nameable, Muteable {
204
unsubscribe()
205
runSafe { onCancel() }
206
cancelSubTasks()
207
- if (removeFromParent) parent?.subTasks?.remove(this)
208
- if (parentPausing) parent?.activate()
+ parent?.subTasks?.remove(this)
+ parent?.activate()
209
if (this is RootTask) return
210
if (state == State.Completed || state == State.Cancelled) return
211
state = State.Cancelled
0 commit comments