diff --git a/lib/oauth.js b/lib/oauth.js index b4873b2..4c0e911 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -405,8 +405,10 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke }); request.on("error", function(err) { - callbackCalled= true; - callback( err ) + if(!callbackCalled) { + callbackCalled= true; + callback( err ) + } }); if( (method == "POST" || method =="PUT") && post_body != null && post_body != "" ) {