summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/go/unit/request.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/unit/request.go b/src/go/unit/request.go
index 75c06ef5..5af3db7b 100644
--- a/src/go/unit/request.go
+++ b/src/go/unit/request.go
@@ -107,10 +107,10 @@ func (r *request) response() *response {
}
func (r *request) done() {
- C.nxt_go_request_done(r.c_req)
-
remove_request(r)
+ C.nxt_go_request_done(r.c_req)
+
for _, m := range r.msgs {
m.Close()
}