File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
src/main/java/oracle/kubernetes/operator/work Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,14 @@ public void run() {
453
453
if (!doRun (next )) {
454
454
completionCheck ();
455
455
}
456
+
457
+ // Trigger exitCallback
458
+ synchronized (this ) {
459
+ if (exitCallback != null && exitCallback != PLACEHOLDER ) {
460
+ exitCallback .onExit ();
461
+ }
462
+ exitCallback = PLACEHOLDER ;
463
+ }
456
464
} finally {
457
465
ContainerResolver .getDefault ().exitContainer (oldContainer );
458
466
CURRENT_FIBER .set (oldFiber );
@@ -478,13 +486,6 @@ private void completionCheck() {
478
486
completionCallback .onCompletion (packet );
479
487
}
480
488
}
481
- // Trigger exitCallback
482
- synchronized (this ) {
483
- if (exitCallback != null && exitCallback != PLACEHOLDER ) {
484
- exitCallback .onExit ();
485
- }
486
- exitCallback = PLACEHOLDER ;
487
- }
488
489
}
489
490
} finally {
490
491
lock .unlock ();
You can’t perform that action at this time.
0 commit comments