Add ReconnectOption to mysql

new_rpc
moneroexamples 5 years ago
parent 29e94669c5
commit 9e3b72fb75

@ -225,7 +225,8 @@ MySqlAccounts::MySqlAccounts(
: current_bc_status {_current_bc_status} : current_bc_status {_current_bc_status}
{ {
// create connection to the mysql // create connection to the mysql
conn = make_shared<MySqlConnector>(); conn = make_shared<MySqlConnector>(
new mysqlpp::ReconnectOption(true));
_init(); _init();
} }

Loading…
Cancel
Save