From b22305758dc7c2f1cf7d46173c9f0378a89926f4 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Mon, 4 Apr 2016 21:52:49 +0100 Subject: Fix deprecation warning in net module. --- lib/pure/net.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 6888eb59f..5de6667dd 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -1377,5 +1377,7 @@ proc connect*(socket: Socket, address: string, port = Port(0), when defineSsl: if socket.isSSL: socket.fd.setBlocking(true) + {.warning[Deprecated]: off.} doAssert socket.handshake() + {.warning[Deprecated]: on.} socket.fd.setBlocking(true) -- cgit 1.4.1-2-gfad0