Commit df74d04d authored by Bruce Flynn's avatar Bruce Flynn
Browse files

fix recursive close calls

parent ae3680e5
......@@ -50,7 +50,7 @@ type sftpFile struct {
}
func (f sftpFile) Close() error {
return f.Close()
return f.Rem.Close()
}
func (f sftpFile) Write(buf []byte) (int, error) {
......@@ -62,7 +62,7 @@ type mySFTPClient struct {
}
func (c mySFTPClient) Close() error {
return c.Close()
return c.SFTP.Close()
}
func (c mySFTPClient) Create(path string) (io.WriteCloser, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment