Add missing Close() before return
This commit is contained in:
parent
025815df64
commit
73c8ae2c86
1
ftp.go
1
ftp.go
@ -257,6 +257,7 @@ func (c *ServerConn) cmdDataConnFrom(offset uint64, format string, args ...inter
|
|||||||
if offset != 0 {
|
if offset != 0 {
|
||||||
_, _, err := c.cmd(StatusRequestFilePending, "REST %d", offset)
|
_, _, err := c.cmd(StatusRequestFilePending, "REST %d", offset)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
conn.Close()
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user