Sat, 29 Sep 2012 19:59:18 +0200
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"