diff --git a/ftp.go b/ftp.go index 339238e..a92668a 100644 --- a/ftp.go +++ b/ftp.go @@ -437,7 +437,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 }