Mercurial > 510Connectbot
changeset 339:cd1d87edcbf6 ganymed
fixed hang during connection, restore synchronized methods
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 31 Jul 2014 15:17:31 -0700 |
parents | 126af684034e |
children | 82d127ae1550 |
files | src/ch/ethz/ssh2/Connection.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/Connection.java Thu Jul 31 15:03:49 2014 -0700 +++ b/src/ch/ethz/ssh2/Connection.java Thu Jul 31 15:17:31 2014 -0700 @@ -669,12 +669,12 @@ * run forever. */ - public void close() { + public synchronized void close() { Throwable t = new Throwable("Closed due to user request."); close(t, false); } - public void close(Throwable t, boolean hard) { + public synchronized void close(Throwable t, boolean hard) { if (cm != null) { cm.closeAllChannels(); }