# HG changeset patch # User Carl Byington # Date 1407170482 25200 # Node ID 145ec135804f594e2b16f747c958aadcc60b3c52 # Parent fe0fbcf55ed9bb4de58d4157cb4ba785be62eb70 remove synchronized from close methods, since they may be called indirectly from connect() diff -r fe0fbcf55ed9 -r 145ec135804f src/ch/ethz/ssh2/Connection.java --- 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(); }