Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in .NET FTP by (1.8k points)
When I do a login with connection.Connect(), but wrong login credentials, the method throws an error.
Because of the logic in my program, this exception gets logged, but the program goes on to the next job.

The result of my method is based on the connection.IsConnected fields.
Although the error was thrown, the IsConnected field == true;

Is this by design?

1 Answer

0 votes
by (161k points)
Just because the login failed doesn't mean that the client isn't still connected to the server - you will need to call Close(true) to close the connection.

Categories

...