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:
StormBytePP committed 2015-09-21 15:11:06 +02:00
1 parent ff71da2b05
commit 7b245a0b6b
23 files changed
+62 -55

No files matched your search

+1 -1
View File
@@ -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));