Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

actually set calledBack

  • Loading branch information...
commit 4c321e202b5a5c3d7d10e8a639f4d0bb5257244e 1 parent 92560aa
@devdazed devdazed authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/connection.js
View
4 lib/connection.js
@@ -112,7 +112,7 @@ function escapeCQL(val) {
throw errors.create(new Error('Invalid Date'));
}
// C* < 2.0.2 doesn't work with negative longs
- if(_val<0){
+ if(_val<0){
return "'" + val.getUTCFullYear()
+ '-' + zero_pad(val.getUTCMonth() + 1)
+ '-' + zero_pad(val.getUTCDate())
@@ -399,6 +399,7 @@ Connection.prototype.execute = function(){
timer = setTimeout(function(){
if(!calledBack){
+ calledBack = true;
callback(new Error('Read Timed Out'));
self._connection.connection.destroy();
}
@@ -414,6 +415,7 @@ Connection.prototype.execute = function(){
return;
}
+ calledBack = true;
if(err){
callback(errors.create(err));
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.