Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #326 from CartoDB/removeListener

Do not try to remove listener from an undefined connection
  • Loading branch information...
commit f5a285207a461ffb0fe521300a2786ed09690bc7 2 parents 0d98e5b + c32f0bb
@mikeal mikeal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  main.js
View
2  main.js
@@ -684,7 +684,7 @@ Request.prototype.start = function () {
self.emit('drain')
})
self.on('end', function() {
- self.req.connection.removeListener('error', self._parserErrorHandler)
+ if ( self.req.connection ) self.req.connection.removeListener('error', self._parserErrorHandler)
})
self.emit('request', self.req)
}
Please sign in to comment.
Something went wrong with that request. Please try again.