summary refs log tree commit diff stats
path: root/lib/pure/asynchttpserver.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-09-16 22:49:21 +0200
committerAraq <rumpf_a@web.de>2014-09-16 22:49:21 +0200
commit32b582bb0013ec59ed56fd825bcf7f21692cabcc (patch)
treec2d0311b431422497c737e17fd9914caf010f4ca /lib/pure/asynchttpserver.nim
parent297647affeca558e19899191089af35ba31db8ac (diff)
parentefca06c71c47eb636aacefe97e5816dc2e1082ff (diff)
downloadNim-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.nim2
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