Skip to content

Commit

Permalink
fix issue strongloop#5 : firstConnection.close() is not a function
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Ledun <j.ledun@iosystems.fr>
  • Loading branch information
jledun committed Mar 13, 2018
1 parent d71588a commit 90cdc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Adapter.prototype.connect = function(cb) {
if(options.connectionTimeout) {
timer = setTimeout(function() {
cb(new Error('connection timeout after ' + options.connectionTimeout + 'ms'));
firstConnection.close();
firstConnection.destroy();
}, options.connectionTimeout);
}

Expand Down

0 comments on commit 90cdc02

Please sign in to comment.