Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert
This commit is contained in:
1 parent
ff71da2b05
commit
7b245a0b6b
23 files changed
+62
-55
No files matched your search
@@ -424,7 +424,7 @@ void FreezeDetectorHandler(const boost::system::error_code& error)
|
||||
else if (getMSTimeDiff(_lastChangeMsTime, curtime) > _maxCoreStuckTimeInMs)
|
||||
{
|
||||
TC_LOG_ERROR("server.worldserver", "World Thread hangs, kicking out server!");
|
||||
ASSERT(false);
|
||||
ABORT();
|
||||
}
|
||||
|
||||
_freezeCheckTimer.expires_from_now(boost::posix_time::seconds(1));
|
||||
|
||||
Reference in new issue
Block a user