mirror of https://github.com/Fabio286/antares.git
fix(MySQL): pool connections not released after MySQL errors, causing endless load animation
This commit is contained in:
parent
690a4541f9
commit
4133fc452f
|
@ -1429,7 +1429,10 @@ export class MySQLClient extends AntaresCore {
|
||||||
fields: remappedFields,
|
fields: remappedFields,
|
||||||
keys: keysArr
|
keys: keysArr
|
||||||
});
|
});
|
||||||
}).catch(reject);
|
}).catch((err) => {
|
||||||
|
if (isPool) connection.release();
|
||||||
|
reject(err);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
resultsArr.push({ rows, report, fields, keys, duration });
|
resultsArr.push({ rows, report, fields, keys, duration });
|
||||||
|
|
Loading…
Reference in New Issue