Software /
code /
prosody
Changeset
2673:61ae351c19b5
net.http: destroy_request(): Remove update for new server API, pass request.handler instead of request.conn to ondisconnect
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 19 Feb 2010 03:22:42 +0000 |
parents | 2672:215d448d69d0 |
children | 2674:a1fdfd7318df |
files | net/http.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http.lua Fri Feb 19 03:21:50 2010 +0000 +++ b/net/http.lua Fri Feb 19 03:22:42 2010 +0000 @@ -212,8 +212,9 @@ function destroy_request(request) if request.conn then - request.handler.close() - listener.ondisconnect(request.conn, "closed"); + request.conn = nil; + request.handler:close() + listener.ondisconnect(request.handler, "closed"); end end