summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2016-04-04 21:52:49 +0100
committerDominik Picheta <dominikpicheta@gmail.com>2016-04-04 21:52:49 +0100
commitb22305758dc7c2f1cf7d46173c9f0378a89926f4 (patch)
tree14b118a94fd83da4026a062843851bdf8ed0220e
parentc90df48293f080833348e8ea9dfcf7ee91736229 (diff)
downloadNim-b22305758dc7c2f1cf7d46173c9f0378a89926f4.tar.gz
Fix deprecation warning in net module.
-rw-r--r--lib/pure/net.nim2
1 files changed, 2 insertions, 0 deletions
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)