diff --git a/core/src/main/java/hudson/slaves/ComputerLauncher.java b/core/src/main/java/hudson/slaves/ComputerLauncher.java index 50dd4afd8d..b13208756c 100644 --- a/core/src/main/java/hudson/slaves/ComputerLauncher.java +++ b/core/src/main/java/hudson/slaves/ComputerLauncher.java @@ -97,6 +97,11 @@ public abstract class ComputerLauncher extends AbstractDescribableImpl * This method is invoked after the {@link Channel} to this computer is terminated. + * + *

+ * Disconnect operation is performed asynchronously, so there's no guarantee + * that the corresponding {@link SlaveComputer} exists for the duration of the + * operation. */ public void afterDisconnect(SlaveComputer computer, TaskListener listener) { // to remain compatible with the legacy implementation that overrides the old signature @@ -118,6 +123,11 @@ public abstract class ComputerLauncher extends AbstractDescribableImpl + * Disconnect operation is performed asynchronously, so there's no guarantee + * that the corresponding {@link SlaveComputer} exists for the duration of the + * operation. */ public void beforeDisconnect(SlaveComputer computer, TaskListener listener) { // to remain compatible with the legacy implementation that overrides the old signature