8000 Do not ignore connection errors when no callback provided · mysqljs/mysql@86a38e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86a38e5

Browse files
committed
Do not ignore connection errors when no callback provided
Couldn't come up with a good unit test for this, need better testing gear soon.
1 parent 22adb45 commit 86a38e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysql/client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ Client.prototype.connect = function(cb) {
5353
if (err.errno & (netBinding.ECONNREFUSED | netBinding.ENOTFOUND)) {
5454
if (cb) {
5555
cb(err);
56+
return;
5657
}
57-
return;
5858
}
5959

6060
self.emit('error', err);

0 commit comments

Comments
 (0)
0