Merge pull request #8 from dsluis/master

Changing expected status response for Logout call
This commit is contained in:
Julien Laffaye 2015-08-18 18:13:03 +02:00
commit a5b2614a99

2
ftp.go
View File

@ -503,7 +503,7 @@ func (c *ServerConn) NoOp() error {
// Logout issues a REIN FTP command to logout the current user. // Logout issues a REIN FTP command to logout the current user.
func (c *ServerConn) Logout() error { func (c *ServerConn) Logout() error {
_, _, err := c.cmd(StatusLoggedIn, "REIN") _, _, err := c.cmd(StatusReady, "REIN")
return err return err
} }