Skip to content

Commit a3ca7d1

Browse files
committed
gateway: Remove ftp.quit()
1 parent 1646c8a commit a3ca7d1

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

gateway.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,6 @@ def reboot_device(self, wait_timeout = None):
473473
#===============================================================================
474474
def shutdown(self):
475475
self.ssh_close()
476-
try:
477-
self.ftp.quit()
478-
except Exception:
479-
pass
480476
try:
481477
self.ftp.close()
482478
except Exception:
@@ -858,10 +854,6 @@ def check_ftp(self, check_upload = False, timeout = None):
858854
ret = -1
859855
finally:
860856
if ftp:
861-
try:
862-
ftp.quit()
863-
except Exception:
864-
pass
865857
try:
866858
ftp.close()
867859
except Exception:

0 commit comments

Comments
 (0)