diff --git a/schainpy/model/utils/jroutils_ftp.py b/schainpy/model/utils/jroutils_ftp.py index 9987241..6d04407 100644 --- a/schainpy/model/utils/jroutils_ftp.py +++ b/schainpy/model/utils/jroutils_ftp.py @@ -180,8 +180,6 @@ class Remote(Thread): if not self.cd(self.remotefolder): raise ValueError, "Could not access to the new remote directory: %s" %self.remotefolder - sts = True - while True: for i in range(self.period): @@ -196,15 +194,11 @@ class Remote(Thread): self.mutex.acquire() for thisFile in self.fileList: - sts = self.upload(thisFile, self.remotefolder) - if not sts: break + self.upload(thisFile, self.remotefolder) self.mutex.release() # self.bussy = False - if not sts: - break - print "[Remote Server] Thread stopped successfully" class FTPClient(Remote):