From 87088bdaa7218d97798df435aadca21409049c3f Mon Sep 17 00:00:00 2001 From: marcelb Date: Sun, 7 Jan 2024 22:15:10 +0100 Subject: [PATCH] Clear 2 --- 2.test | 0 src/mysql.cpp | 5 +---- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 2.test 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