From d5ee46ab17cc62de847c43de9e6c264d37755bb2 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 27 Feb 2017 15:30:46 +0000 Subject: [PATCH] Use chan struct for http connection closed channel --- db/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/db.go b/db/db.go index 091f4f35..2e17c1a5 100644 --- a/db/db.go +++ b/db/db.go @@ -140,10 +140,10 @@ func Process(ctx *fibre.Context, ast *sql.Query, vars map[string]interface{}) (o // connection then force quit any running // queries if a socket close event occurs. - if _, ok := ctx.Response().ResponseWriter.(http.CloseNotifier); ok { + if _, ok := ctx.Response().Writer().(http.CloseNotifier); ok { exit := ctx.Response().CloseNotify() - done := make(chan bool) + done := make(chan struct{}) defer close(done) go func() {