diff --git a/ftpsClient.exe b/ftpsClient.exe index 3400f23..8e297a4 100644 Binary files a/ftpsClient.exe and b/ftpsClient.exe differ diff --git a/ftpsClient.go b/ftpsClient.go index 648f996..8829589 100644 --- a/ftpsClient.go +++ b/ftpsClient.go @@ -41,6 +41,7 @@ func init() { } func main() { + defer ftp.Close() log.SetFlags(log.Ldate | log.Ltime) log.SetOutput(os.Stdout) @@ -77,7 +78,6 @@ func _InitFTP() error { log.Printf("[ERR] %s\r\n", err.Error()) continue } - defer ftp.Close() cfg := tls.Config{ InsecureSkipVerify: true,