Fix issue #54: end is being triggered 2 times
This commit is contained in:
@@ -62,8 +62,9 @@ CopyStreamQuery.prototype.handleCommandComplete = function(msg) {
|
|||||||
this.rowCount = parseInt(match[1], 10)
|
this.rowCount = parseInt(match[1], 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.unpipe()
|
// unpipe from connection
|
||||||
this.emit('end')
|
this.unpipe(this.connection)
|
||||||
|
this.connection = null
|
||||||
}
|
}
|
||||||
|
|
||||||
CopyStreamQuery.prototype.handleReadyForQuery = function() {
|
CopyStreamQuery.prototype.handleReadyForQuery = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user