make tests green again

This commit is contained in:
Andreas Rumpf
2016-08-23 10:16:52 +02:00
parent f439a2f25f
commit bbfe28ec5c

View File

@@ -129,10 +129,10 @@ proc ftpClient*(address: string, port = Port(21),
result.csock = socket()
if result.csock == invalidSocket: raiseOSError(osLastError())
template blockingOperation(sock: Socket, body: stmt) {.immediate.} =
template blockingOperation(sock: Socket, body: untyped) =
body
template blockingOperation(sock: asyncio.AsyncSocket, body: stmt) {.immediate.} =
template blockingOperation(sock: asyncio.AsyncSocket, body: untyped) =
sock.setBlocking(true)
body
sock.setBlocking(false)