diff options
author | Luca <ldanzelmo@gmail.com> | 2015-06-26 09:35:35 +0200 |
---|---|---|
committer | Luca <ldanzelmo@gmail.com> | 2015-06-26 09:35:35 +0200 |
commit | 04f64fde855c83671fa0a36271253f66121cb2e6 (patch) | |
tree | 864fb7332a8c64e378d76ed7aead6e9fa8f250bb | |
parent | 96e5c7c3b960fd617428cea3e64236dc8f430547 (diff) | |
download | Nim-04f64fde855c83671fa0a36271253f66121cb2e6.tar.gz |
Fix no async code
-rw-r--r-- | lib/pure/ftpclient.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/ftpclient.nim b/lib/pure/ftpclient.nim index 522f42cf8..eaa8c82b2 100644 --- a/lib/pure/ftpclient.nim +++ b/lib/pure/ftpclient.nim @@ -271,9 +271,9 @@ proc connect*[T](ftp: FtpBase[T]) = # Handle 220 messages from the server if reply.startsWith("220"): - assertReply(reply, "220") + assertReply ftp.expectReply(), "220" while reply.continuesWith("-", 3): # handle multiline 220 message - assertReply(reply, "220") + assertReply ftp.expectReply(), "220" reply = ftp.expectReply() if ftp.user != "": |