diff --git a/2.test b/2.test deleted file mode 100644 index e69de29..0000000 diff --git a/src/mysql.cpp b/src/mysql.cpp index 0a3a1fb..30c0f9a 100644 --- a/src/mysql.cpp +++ b/src/mysql.cpp @@ -126,7 +126,6 @@ mySQL::mySQL(const string _path, const string _username, const string _password, for (int i=0; iisValid()) { - cout << "Connection is not valid, remove it from pool!" << endl; io.lock(); con.erase(con.begin()+i); io.unlock(); @@ -323,7 +322,5 @@ Connection* mySQL::shift_con() { mySQL::~mySQL() { runBot = false; bot.get(); - if(disconnect()) { - throw string("[ERROR] Unable to close database "); - } + disconnect(); } \ No newline at end of file