Fix deprecation warning in net module.

This commit is contained in:
Dominik Picheta
2016-04-04 21:52:49 +01:00
parent c90df48293
commit b22305758d

View File

@@ -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)