mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Close connection in mysql_conn module
This commit is contained in:
@@ -34,6 +34,7 @@ def mysql_conn(retry):
|
|||||||
db.query("""SELECT 1;""")
|
db.query("""SELECT 1;""")
|
||||||
log.debug(f'Successfully completed query against MySQL server on {mainip}')
|
log.debug(f'Successfully completed query against MySQL server on {mainip}')
|
||||||
|
|
||||||
|
db.close()
|
||||||
mysql_up = True
|
mysql_up = True
|
||||||
break
|
break
|
||||||
except _mysql.OperationalError as e:
|
except _mysql.OperationalError as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user