diff src/ch/ethz/ssh2/Connection.java @ 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 b40bc65fa09a
children 7a5943a514d5
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();
         }