diff --git a/src/server/database/Database/MySQLConnection.cpp b/src/server/database/Database/MySQLConnection.cpp index 0b5503338c..e508d9d265 100644 --- a/src/server/database/Database/MySQLConnection.cpp +++ b/src/server/database/Database/MySQLConnection.cpp @@ -537,7 +537,7 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo, uint8 attempts /*= 5*/) { TC_LOG_FATAL("sql.sql", "Could not re-prepare statements!"); std::this_thread::sleep_for(std::chrono::seconds(10)); - std::abort(); + ABORT(); } TC_LOG_INFO("sql.sql", "Successfully reconnected to %s @%s:%s (%s).", @@ -557,7 +557,7 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo, uint8 attempts /*= 5*/) // We could also initiate a shutdown through using std::raise(SIGTERM) std::this_thread::sleep_for(std::chrono::seconds(10)); - std::abort(); + ABORT(); } else { @@ -580,12 +580,12 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo, uint8 attempts /*= 5*/) case ER_NO_SUCH_TABLE: TC_LOG_ERROR("sql.sql", "Your database structure is not up to date. Please make sure you've executed all queries in the sql/updates folders."); std::this_thread::sleep_for(std::chrono::seconds(10)); - std::abort(); + ABORT(); return false; case ER_PARSE_ERROR: TC_LOG_ERROR("sql.sql", "Error while parsing SQL. Core fix required."); std::this_thread::sleep_for(std::chrono::seconds(10)); - std::abort(); + ABORT(); return false; default: TC_LOG_ERROR("sql.sql", "Unhandled MySQL errno %u. Unexpected behaviour possible.", errNo); diff --git a/src/server/game/Scripting/ScriptReloadMgr.cpp b/src/server/game/Scripting/ScriptReloadMgr.cpp index 1eb0e08d1a..aae28472c5 100644 --- a/src/server/game/Scripting/ScriptReloadMgr.cpp +++ b/src/server/game/Scripting/ScriptReloadMgr.cpp @@ -1509,7 +1509,7 @@ void LibraryUpdateListener::handleFileAction(efsw::WatchID watchid, std::string reloader->QueueSharedLibraryChanged(path); break; default: - WPAbort(); + ABORT(); break; } }); @@ -1599,7 +1599,7 @@ void SourceUpdateListener::handleFileAction(efsw::WatchID watchid, std::string c reloader->QueueModifySourceFile(script_module_name_, path); break; default: - WPAbort(); + ABORT(); break; } });