Fixed a little issue in the FTP sync handler.

Mon, 24 Sep 2012 19:14:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 24 Sep 2012 19:14:39 +0200
changeset 2062
f275d3afe038
parent 2061
b74f1d202ba7
child 2063
2227d4cc905e

Fixed a little issue in the FTP sync handler.

Helpviewer/Sync/FtpSyncHandler.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/Sync/FtpSyncHandler.py	Sun Sep 23 18:53:36 2012 +0200
+++ b/Helpviewer/Sync/FtpSyncHandler.py	Mon Sep 24 19:14:39 2012 +0200
@@ -409,7 +409,8 @@
             self.__idleTimer.stop()
         
         try:
-            self.__ftp.quit()
+            if self.__connected:
+                self.__ftp.quit()
         except ftplib.all_errors:
             pass    # ignore FTP errors because we are shutting down anyway
         self.__connected = False

eric ide

mercurial