|
|
|
@ -473,10 +473,6 @@ class Gateway():
|
|
|
|
#===============================================================================
|
|
|
|
#===============================================================================
|
|
|
|
def shutdown(self):
|
|
|
|
def shutdown(self):
|
|
|
|
self.ssh_close()
|
|
|
|
self.ssh_close()
|
|
|
|
try:
|
|
|
|
|
|
|
|
self.ftp.quit()
|
|
|
|
|
|
|
|
except Exception:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
self.ftp.close()
|
|
|
|
self.ftp.close()
|
|
|
|
except Exception:
|
|
|
|
except Exception:
|
|
|
|
@ -858,10 +854,6 @@ class Gateway():
|
|
|
|
ret = -1
|
|
|
|
ret = -1
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|
if ftp:
|
|
|
|
if ftp:
|
|
|
|
try:
|
|
|
|
|
|
|
|
ftp.quit()
|
|
|
|
|
|
|
|
except Exception:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
ftp.close()
|
|
|
|
ftp.close()
|
|
|
|
except Exception:
|
|
|
|
except Exception:
|
|
|
|
|