diff --git a/ftp.go b/ftp.go index 952bfe7..9d43c67 100644 --- a/ftp.go +++ b/ftp.go @@ -503,7 +503,7 @@ func (c *ServerConn) NoOp() error { // Logout issues a REIN FTP command to logout the current user. func (c *ServerConn) Logout() error { - _, _, err := c.cmd(StatusLoggedIn, "REIN") + _, _, err := c.cmd(StatusReady, "REIN") return err }