]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ftp.cpp
even more fixes to last-minute wxFileSystem mods
[wxWidgets.git] / src / common / ftp.cpp
index f3126b2f333b5120b7b3056e51665c62a594de8c..23dde4198900c31d21441ccdbbb6afb461023116 100644 (file)
@@ -507,7 +507,7 @@ public:
     {
         delete m_i_socket;
 
-        if ( LastError() == wxStream_NOERROR )
+        if ( IsOk() )
         {
             // wait for "226 transfer completed"
             m_ftp->CheckResult('2');