Asyncdispatch fixes.

``return`` is now transformed into a ``return nil`` in the async iterator
to work around the no-yield in ``try .. except ..`` closure iterator
limitation.
This commit is contained in:
Dominik Picheta 2014-04-05 20:27:42 +01:00
commit d0478a5637
2 changed files with 20 additions and 7 deletions

View file

@ -430,7 +430,7 @@ proc generateHeaders(r: TURL, httpMethod: THttpMethod,
add(result, "\c\L")
type
PAsyncHttpClient = ref object
PAsyncHttpClient* = ref object
socket: PAsyncSocket
connected: bool
currentURL: TURL ## Where we are currently connected.