diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2016-04-04 21:52:49 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2016-04-04 21:52:49 +0100 |
commit | b22305758dc7c2f1cf7d46173c9f0378a89926f4 (patch) | |
tree | 14b118a94fd83da4026a062843851bdf8ed0220e | |
parent | c90df48293f080833348e8ea9dfcf7ee91736229 (diff) | |
download | Nim-b22305758dc7c2f1cf7d46173c9f0378a89926f4.tar.gz |
Fix deprecation warning in net module.
-rw-r--r-- | lib/pure/net.nim | 2 |
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) |