diff --git a/ftpsClient.exe b/ftpsClient.exe index d964b77..afe386e 100644 Binary files a/ftpsClient.exe and b/ftpsClient.exe differ diff --git a/ftpsClient.go b/ftpsClient.go index a3b0c28..d82dd45 100644 --- a/ftpsClient.go +++ b/ftpsClient.go @@ -41,7 +41,6 @@ func init() { } func main() { - defer ftp.Close() log.SetFlags(log.Ldate | log.Ltime) log.SetOutput(os.Stdout) @@ -54,6 +53,7 @@ func main() { if err != nil { os.Exit(1) } + defer ftp.Close() switch act { case "list":