Revision: 22703
http://jedit.svn.sourceforge.net/jedit/?rev=22703&view=rev
Author: ezust
Date: 2013-01-20 20:50:16 +0000 (Sun, 20 Jan 2013)
Log Message:
-----------
Attempt to fix #2873889
Modified Paths:
--------------
plugins/FTP/trunk/ftp/SFtpConnection.java
Modified: plugins/FTP/trunk/ftp/SFtpConnection.java
===================================================================
--- plugins/FTP/trunk/ftp/SFtpConnection.java 2013-01-20 20:17:40 UTC (rev 22702)
+++ plugins/FTP/trunk/ftp/SFtpConnection.java 2013-01-20 20:50:16 UTC (rev 22703)
@@ -22,20 +22,35 @@
package ftp;
-import com.jcraft.jsch.*;
+import java.awt.EventQueue;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.lang.reflect.InvocationTargetException;
+import java.util.ArrayList;
+import java.util.Vector;
-import ftp.FtpVFS.FtpDirectoryEntry;
-
-import java.awt.*;
-import java.io.*;
-import java.lang.reflect.InvocationTargetException;
-import java.util.*;
import javax.swing.JOptionPane;
+import org.gjt.sp.jedit.MiscUtilities;
import org.gjt.sp.jedit.jEdit;
-import org.gjt.sp.jedit.MiscUtilities;
import org.gjt.sp.util.Log;
+import com.jcraft.jsch.Channel;
+import com.jcraft.jsch.ChannelSftp;
+import com.jcraft.jsch.JSch;
+import com.jcraft.jsch.Proxy;
+import com.jcraft.jsch.ProxyHTTP;
+import com.jcraft.jsch.ProxySOCKS5;
+import com.jcraft.jsch.Session;
+import com.jcraft.jsch.SftpATTRS;
+import com.jcraft.jsch.SftpException;
+import com.jcraft.jsch.UIKeyboardInteractive;
+import com.jcraft.jsch.UserInfo;
+
+import ftp.FtpVFS.FtpDirectoryEntry;
+
/**
* Secure FTP connection class
* @author Slava Pestov
@@ -83,7 +98,7 @@
}
// }}}
- Session session = ConnectionManager.client.getSession(info.user, info.host, info.port);
+ session = ConnectionManager.client.getSession(info.user, info.host, info.port);
if (proxy != null)
session.setProxy(proxy);
@@ -243,9 +258,12 @@
void logout() throws IOException {
sftp.disconnect();
+ session.disconnect();
}
private ChannelSftp sftp;
+ private Session session;
+
private int keyAttempts = 0;
// private int symLinkDepth = 0; // not used now
@@ -297,7 +315,7 @@
if (passphrase==null || keyAttempts != 0)
{
PasswordDialog pd = new PasswordDialog(jEdit.getActiveView(),
- jEdit.getProperty("login.privatekeypassword"),message);
+ jEdit.getProperty("login.privatekeypassword"), message);
if (!pd.isOK())
return false;
passphrase = new String(pd.getPassword());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|