In threads, an internal error now immediately aborts.

Otherwise, the error won't make it back to the main thread for a while
and subsequent code in the thread would still execute.
This commit is contained in:
Robin Sommer 2012-04-16 15:19:14 -07:00
parent 891c532775
commit 08593c5147

View file

@ -222,7 +222,9 @@ void MsgThread::InternalWarning(const char* msg)
void MsgThread::InternalError(const char* msg) void MsgThread::InternalError(const char* msg)
{ {
SendOut(new ReporterMessage(ReporterMessage::INTERNAL_ERROR, this, msg)); // This one aborts immediately.
fprintf(stderr, "internal error in thread: %s\n", msg);
abort();
} }
#ifdef DEBUG #ifdef DEBUG