Fix issue #54: `end` is being triggered 2 times

performance-tune-copy-to
jeromew 8 years ago
parent ade7ab95a0
commit 7003f6070f

@ -62,8 +62,9 @@ CopyStreamQuery.prototype.handleCommandComplete = function(msg) {
this.rowCount = parseInt(match[1], 10)
}
this.unpipe()
this.emit('end')
// unpipe from connection
this.unpipe(this.connection)
this.connection = null
}
CopyStreamQuery.prototype.handleReadyForQuery = function() {

Loading…
Cancel
Save