mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-07 13:48:33 +00:00
Modified preferences nBox label
Fifed MySQL connection leak in case of reconnection
This commit is contained in:
parent
a949d76a02
commit
83360abc1c
2 changed files with 3 additions and 2 deletions
|
|
@ -477,6 +477,7 @@ int MySQLDB::exec_sql_query(lua_State *vm, char *sql, bool limitRows) {
|
|||
ntop->getTrace()->traceEvent(TRACE_ERROR, "MySQL error: [%s][%d]",
|
||||
get_last_db_error(&mysql), rc);
|
||||
|
||||
mysql_close(&mysql);
|
||||
if(m) m->unlock(__FILE__, __LINE__);
|
||||
connectToDB(&mysql, true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue