Skip to content

Commit

Permalink
Server: Better app termination handler (qFatal)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 8, 2013
1 parent f00a725 commit 74841b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/server/src/main_server.cpp
Expand Up @@ -46,9 +46,9 @@
*/
static LegacyCore* de2LegacyCore;

static void handleLegacyCoreTerminate(const char* msg)
static void handleAppTerminate(char const *msg)
{
Con_Error("Application terminated due to exception:\n%s\n", msg);
qFatal("Application terminated due to exception:\n%s\n", msg);
}

/**
Expand All @@ -73,7 +73,7 @@ int main(int argc, char** argv)
QCoreApplication::setApplicationName ("Doomsday Server");
QCoreApplication::setApplicationVersion (DOOMSDAY_VERSION_BASE);

dengApp->setTerminateFunc(handleLegacyCoreTerminate);
dengApp->setTerminateFunc(handleAppTerminate);

ServerSystem serverSystem;
dengApp->addSystem(serverSystem);
Expand Down

0 comments on commit 74841b3

Please sign in to comment.