From 169efda0b5b7bc08de464393bde23da76443dfe8 Mon Sep 17 00:00:00 2001 From: Daniel Sluis Date: Fri, 18 Oct 2013 09:30:28 -0700 Subject: [PATCH] Changing expected status response for Logout call --- ftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }