copy from: unneeded pgstream.end in req error

This commit is contained in:
Simon Martín 2018-06-21 14:32:36 +02:00
parent 5a28d36d69
commit d17a5608fb

View File

@ -118,7 +118,7 @@ function handleCopyFrom (logger) {
.on('error', err => { .on('error', err => {
metrics.end(null, err); metrics.end(null, err);
req.unpipe(pgstream); req.unpipe(pgstream);
pgstream.end(); // pgstream.end();
done(); done();
next(err); next(err);