diff options
author | Araq <rumpf_a@web.de> | 2014-09-16 22:49:21 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-09-16 22:49:21 +0200 |
commit | 32b582bb0013ec59ed56fd825bcf7f21692cabcc (patch) | |
tree | c2d0311b431422497c737e17fd9914caf010f4ca /lib/pure/asynchttpserver.nim | |
parent | 297647affeca558e19899191089af35ba31db8ac (diff) | |
parent | efca06c71c47eb636aacefe97e5816dc2e1082ff (diff) | |
download | Nim-32b582bb0013ec59ed56fd825bcf7f21692cabcc.tar.gz |
Merge branch 'bigbreak' of https://github.com/Araq/Nimrod into bigbreak
Diffstat (limited to 'lib/pure/asynchttpserver.nim')
-rw-r--r-- | lib/pure/asynchttpserver.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asynchttpserver.nim b/lib/pure/asynchttpserver.nim index 9de0a6268..257fbaeb5 100644 --- a/lib/pure/asynchttpserver.nim +++ b/lib/pure/asynchttpserver.nim @@ -116,7 +116,7 @@ proc sendStatus(client: PAsyncSocket, status: string): Future[void] = proc processClient(client: PAsyncSocket, address: string, callback: proc (request: TRequest): Future[void] {.closure, gcsafe.}) {.async.} = - while true: + while not client.closed: # GET /path HTTP/1.1 # Header: val # \n |