Fix no async code
This commit is contained in:
parent
96e5c7c3b9
commit
04f64fde85
1 changed files with 2 additions and 2 deletions
|
|
@ -271,9 +271,9 @@ proc connect*[T](ftp: FtpBase[T]) =
|
||||||
|
|
||||||
# Handle 220 messages from the server
|
# Handle 220 messages from the server
|
||||||
if reply.startsWith("220"):
|
if reply.startsWith("220"):
|
||||||
assertReply(reply, "220")
|
assertReply ftp.expectReply(), "220"
|
||||||
while reply.continuesWith("-", 3): # handle multiline 220 message
|
while reply.continuesWith("-", 3): # handle multiline 220 message
|
||||||
assertReply(reply, "220")
|
assertReply ftp.expectReply(), "220"
|
||||||
reply = ftp.expectReply()
|
reply = ftp.expectReply()
|
||||||
|
|
||||||
if ftp.user != "":
|
if ftp.user != "":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue