fixed GH #141: Application::run() documentation/implementation discrepancy

This commit is contained in:
Aleksandar Fabijanic
2013-03-30 16:59:29 -05:00
parent 5a8defd849
commit dbe5a37106
2 changed files with 7 additions and 4 deletions

View File

@@ -318,12 +318,12 @@ void Application::stopOptionsProcessing()
int Application::run()
{
int rc = EXIT_CONFIG;
initialize(*this);
try
{
initialize(*this);
rc = EXIT_SOFTWARE;
rc = main(_unprocessedArgs);
uninitialize();
}
catch (Poco::Exception& exc)
{
@@ -337,6 +337,8 @@ int Application::run()
{
logger().fatal("system exception");
}
uninitialize();
return rc;
}