wxFTP::~wxFTP()
{
+ if ( m_streaming )
+ {
+ (void)Abort();
+ }
+
Close();
}
return Connect(addr);
}
-bool wxFTP::Close(bool force)
+bool wxFTP::Close()
{
if ( m_streaming )
{
- if ( !force )
- {
- m_lastError = wxPROTO_STREAMING;
- return FALSE;
- }
-
- (void)Abort();
+ m_lastError = wxPROTO_STREAMING;
+ return FALSE;
}
if ( IsConnected() )