From d17a5608fbf56e3ebaf4411e1b0da5db4c622039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Thu, 21 Jun 2018 14:32:36 +0200 Subject: [PATCH] copy from: unneeded pgstream.end in req error --- app/controllers/copy_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/copy_controller.js b/app/controllers/copy_controller.js index 5b2c9b00..f6a45cb1 100644 --- a/app/controllers/copy_controller.js +++ b/app/controllers/copy_controller.js @@ -118,7 +118,7 @@ function handleCopyFrom (logger) { .on('error', err => { metrics.end(null, err); req.unpipe(pgstream); - pgstream.end(); + // pgstream.end(); done(); next(err);