Fixed async send in ftpclient module.
This commit is contained in:
parent
98defd5a56
commit
2555e500b6
1 changed files with 2 additions and 1 deletions
|
|
@ -129,6 +129,7 @@ proc expectReply(ftp: PFTPClient): TaintedString =
|
||||||
proc send*(ftp: PFTPClient, m: string): TaintedString =
|
proc send*(ftp: PFTPClient, m: string): TaintedString =
|
||||||
## Send a message to the server, and wait for a primary reply.
|
## Send a message to the server, and wait for a primary reply.
|
||||||
## ``\c\L`` is added for you.
|
## ``\c\L`` is added for you.
|
||||||
|
blockingOperation(ftp.getCSock()):
|
||||||
ftp.getCSock().send(m & "\c\L")
|
ftp.getCSock().send(m & "\c\L")
|
||||||
return ftp.expectReply()
|
return ftp.expectReply()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue