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

@ -147,7 +147,7 @@ proc sendStatus(client: AsyncSocket, status: string): Future[void] =
proc processClient(client: AsyncSocket, address: string,
callback: proc (request: Request):
Future[void] {.closure, gcsafe.}) {.async.} =
while not client.closed:
while not client.isClosed:
# GET /path HTTP/1.1
# Header: val
# \n