File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
core/src/main/java/dev/failsafe/spi Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ public synchronized boolean cancel(boolean mayInterruptIfRunning) {
81
81
ExecutionResult <R > result = ExecutionResult .exception (new CancellationException ());
82
82
super .completeExceptionally (result .getException ());
83
83
completionHandler .accept (result , newestExecution );
84
+ newestExecution = null ;
85
+ cancelFunctions = null ;
84
86
return cancelResult ;
85
87
}
86
88
@@ -99,6 +101,8 @@ public synchronized boolean completeResult(ExecutionResult<R> result) {
99
101
completed = super .completeExceptionally (exception );
100
102
if (completed )
101
103
completionHandler .accept (result , newestExecution );
104
+ newestExecution = null ;
105
+ cancelFunctions = null ;
102
106
return completed ;
103
107
}
104
108
You can’t perform that action at this time.
0 commit comments