diff options
Diffstat (limited to 'lib/pure/httpclient.nim')
-rw-r--r-- | lib/pure/httpclient.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim index a0e8c6b05..5eff6cfa2 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -662,8 +662,7 @@ when isMainModule: resp = await client.request("http://nim-lang.org/download.html") echo("Got response: ", resp.status) - asyncCheck main() - runForever() + waitFor main() else: #downloadFile("http://force7.de/nim/index.html", "nimindex.html") |