Fixed a bunch of MySQL pooling issues where connections were not properly released or were double-released

This commit is contained in:
Andris Reinman 2016-04-05 15:29:42 +03:00
parent 06d2712916
commit 0392473ecd
8 changed files with 10 additions and 13 deletions

View file

@ -193,6 +193,7 @@ module.exports.sendReset = (username, callback) => {
}
if (!rows.length) {
connection.release();
return callback(null, false);
}