/// <summary> /// Closes the FTP stream and releases any resources associated with the stream. /// </summary> public override void Close() { if (!IsClosed) { CloseConnection(); m_ctrl.RefreshResponse(); m_ctrl.Session.EndDataTransfer(); } }
internal void Close(bool error) { if (!IsClosed) { CloseConnection(); if (!error) { m_ctrl.RefreshResponse(); } m_ctrl.Session.EndDataTransfer(); } }