提交 acfb32ad 编写于 作者: K kohsuke

doc improvement

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9385 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b18553d6
......@@ -331,9 +331,7 @@ public final class Slave implements Node, Serializable {
*/
private void launch(final Slave slave) {
closeChannel();
final OutputStream launchLog = openLogFile();
slave.startMethod.launch(this, launchLog);
slave.startMethod.launch(this, openLogFile());
}
public OutputStream openLogFile() {
......@@ -467,6 +465,9 @@ public final class Slave implements Node, Serializable {
closeChannel();
}
/**
* If still connected, disconnect.
*/
private void closeChannel() {
Channel c = channel;
channel = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册