1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-03-07 04:47:44 +01:00

fix(MySQL): pool connections not released after MySQL errors, causing endless load animation

This commit is contained in:
Fabio Di Stasio 2021-06-11 15:02:45 +02:00
parent 690a4541f9
commit 4133fc452f

View File

@ -1429,7 +1429,10 @@ export class MySQLClient extends AntaresCore {
fields: remappedFields,
keys: keysArr
});
}).catch(reject);
}).catch((err) => {
if (isPool) connection.release();
reject(err);
});
});
resultsArr.push({ rows, report, fields, keys, duration });