mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 05:29:41 +01:00
FTPClientSession::close() error? #1880
This commit is contained in:
@@ -181,20 +181,24 @@ void FTPClientSession::logout()
|
||||
{
|
||||
try { endTransfer(); }
|
||||
catch (...) { }
|
||||
_isLoggedIn = false;
|
||||
std::string response;
|
||||
sendCommand("QUIT", response);
|
||||
_isLoggedIn = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void FTPClientSession::close()
|
||||
{
|
||||
logout();
|
||||
_pControlSocket->close();
|
||||
delete _pControlSocket;
|
||||
_pControlSocket = 0;
|
||||
try { logout(); }
|
||||
catch (...) {}
|
||||
_serverReady = false;
|
||||
if (_pControlSocket)
|
||||
{
|
||||
_pControlSocket->close();
|
||||
delete _pControlSocket;
|
||||
_pControlSocket = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user