Explorar el Código

Changing expected status response for Logout call

Daniel Sluis hace 12 años
padre
commit
169efda0b5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ftp.go

+ 1 - 1
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
 }