mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
bugfix: ftpclient compiles again
This commit is contained in:
@@ -114,7 +114,7 @@ proc getDSock(ftp: PFTPClient): TSocket =
|
||||
proc getCSock(ftp: PFTPClient): TSocket =
|
||||
if ftp.isAsync: return ftp.asyncCSock else: return ftp.csock
|
||||
|
||||
template blockingOperation(sock: TSocket, body: stmt) =
|
||||
template blockingOperation(sock: TSocket, body: stmt) {.immediate.} =
|
||||
if ftp.isAsync:
|
||||
sock.setBlocking(true)
|
||||
body
|
||||
|
||||
Reference in New Issue
Block a user