Fixes asynchttpsever.

This commit is contained in:
Dominik Picheta 2014-12-26 19:47:25 +00:00
commit 32db6798a3
2 changed files with 5 additions and 1 deletions

View file

@ -454,6 +454,10 @@ proc getFd*(socket: AsyncSocket): SocketHandle =
## Returns the socket's file descriptor.
return socket.fd
proc isClosed*(socket: AsyncSocket): bool =
## Determines whether the socket has been closed.
return socket.closed
when isMainModule:
type
TestCases = enum