Skip to content

Commit

Permalink
Fixes reconnect so it still works after
Browse files Browse the repository at this point in the history
  • Loading branch information
mjadobson committed Feb 11, 2013
1 parent d5b880c commit 0f5a8e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mysql.js
Expand Up @@ -17,9 +17,9 @@ var db = function (settings, logging) {

console.log('Re-connecting lost connection: ' + err.stack);

connection = mysql.createConnection(settings);
handleDisconnect(connection);
connection.connect();
this.client = mysql.createConnection(settings);
handleDisconnect(this.client);
this.client.connect();
});
}

Expand Down

0 comments on commit 0f5a8e7

Please sign in to comment.