Fixed an issue with the FTP sync handler.

Sat, 29 Sep 2012 19:59:18 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 29 Sep 2012 19:59:18 +0200
changeset 2076
0d6286344ac1
parent 2075
6d3192a8a2d7
child 2077
68a34718a0ce

Fixed an issue with the FTP sync handler.

Helpviewer/Sync/FtpSyncHandler.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/Sync/FtpSyncHandler.py	Sat Sep 29 19:11:58 2012 +0200
+++ b/Helpviewer/Sync/FtpSyncHandler.py	Sat Sep 29 19:59:18 2012 +0200
@@ -301,11 +301,11 @@
         # use idle timeout to check, if we are still connected
         if self.__connected:
             self.__idleTimeout()
-            if not self.__connected:
-                ok = self.__connectAndLogin()
-                if not ok:
-                    self.syncStatus.emit(type_, self.trUtf8("Cannot log in to FTP host."))
-                    return
+        if not self.__connected or self.__ftp.sock is None:
+            ok = self.__connectAndLogin()
+            if not ok:
+                self.syncStatus.emit(type_, self.trUtf8("Cannot log in to FTP host."))
+                return
         
         # upload the changed file
         self.__state = "uploading"

eric ide

mercurial