better example

This commit is contained in:
Shikhar Bhushan
2011-06-04 20:47:57 +01:00
parent 3695e2a184
commit 7810b5f653

View File

@@ -99,8 +99,8 @@ import java.util.List;
* client.authPassword("username", "password"); * client.authPassword("username", "password");
* final Session session = client.startSession(); * final Session session = client.startSession();
* try { * try {
* session.exec("true"); * final Command cmd = session.exec("true");
* client.getConnection().join(); * cmd.join(1, TimeUnit.SECONDS);
* } finally { * } finally {
* session.close(); * session.close();
* } finally { * } finally {