Fixes another event handler leak.
It turns out 'error' handlers were leaking as well, although more slowly.
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ var CopyStreamQuery = function(text) {
|
||||
|
||||
util.inherits(CopyStreamQuery, Transform)
|
||||
|
||||
var eventTypes = ['close', 'data', 'end']
|
||||
var eventTypes = ['close', 'data', 'end', 'error']
|
||||
|
||||
CopyStreamQuery.prototype.submit = function(connection) {
|
||||
connection.query(this.text)
|
||||
|
||||
Reference in New Issue
Block a user