Mercurial > 510Connectbot
changeset 365:145ec135804f
remove synchronized from close methods, since they may be called indirectly from connect()
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 04 Aug 2014 09:41:22 -0700 |
parents | fe0fbcf55ed9 |
children | 098bb036e0a7 |
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 Mon Aug 04 09:29:54 2014 -0700 +++ b/src/ch/ethz/ssh2/Connection.java Mon Aug 04 09:41:22 2014 -0700 @@ -669,12 +669,12 @@ * run forever. */ - public synchronized void close() { + public void close() { Throwable t = new Throwable("Closed due to user request."); close(t, false); } - public synchronized void close(Throwable t, boolean hard) { + public void close(Throwable t, boolean hard) { if (cm != null) { cm.closeAllChannels(); }