Skip to content

Commit

Permalink
Merge pull request #47 from j0shua/master
Browse files Browse the repository at this point in the history
Adding flush parameter when calling client.end
  • Loading branch information
LoicMahieu committed Jun 14, 2016
2 parents 829f450 + dd5850b commit a2a9afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -59,7 +59,7 @@ internals.Connection.prototype.start = function (callback) {
client.on('error', (err) => {

if (!self.client) { // Failed to connect
client.end();
client.end(true);
return callback(err);
}
});
Expand Down

0 comments on commit a2a9afa

Please sign in to comment.