mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
gateway: Remove ftp.quit()
This commit is contained in:
@@ -473,10 +473,6 @@ class Gateway():
|
||||
#===============================================================================
|
||||
def shutdown(self):
|
||||
self.ssh_close()
|
||||
try:
|
||||
self.ftp.quit()
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
self.ftp.close()
|
||||
except Exception:
|
||||
@@ -858,10 +854,6 @@ class Gateway():
|
||||
ret = -1
|
||||
finally:
|
||||
if ftp:
|
||||
try:
|
||||
ftp.quit()
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
ftp.close()
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user