SftpClient.OnConnected

Nov 19, 2011 at 4:36 AM
Edited Nov 19, 2011 at 4:40 AM

if a sftpclient disconnected becouse of network broken, I call the func sftpclent.Connect()

the function SftpClient.OnConnected() should add

if (this._sftpSession != null)
{
    this._sftpSession.Dispose();

    this._sftpSession = null;
}

but sometimes this._sftpSession.Dispose() throw exception

can somebody fix the err

Coordinator
Nov 21, 2011 at 7:36 PM

Can you post a code to reproduce the error, and I guess tell me where to put a break point to disconnect the client and I will look into it.

 

Thanks,

Oleg