Revert 3db460f504 as requested by @Araq.

This commit is contained in:
Dominik Picheta 2018-01-17 16:48:02 +00:00
commit 86fb8bf723
4 changed files with 14 additions and 32 deletions

View file

@ -146,8 +146,6 @@ proc newAsyncSocket*(fd: AsyncFD, domain: Domain = AF_INET,
## **Note**: This procedure will **NOT** register ``fd`` with the global
## async dispatcher. You need to do this manually. If you have used
## ``newAsyncNativeSocket`` to create ``fd`` then it's already registered.
## The reason for this is that the ``AsyncFD`` type is a special type for an
## FD that signifies that its been registered.
assert fd != osInvalidSocket.AsyncFD
new(result)
result.fd = fd.SocketHandle