diff options
Diffstat (limited to 'TAO/examples/Quoter/server.cpp')
-rw-r--r-- | TAO/examples/Quoter/server.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/TAO/examples/Quoter/server.cpp b/TAO/examples/Quoter/server.cpp index fb1da3e21c8..c52c57ff0bd 100644 --- a/TAO/examples/Quoter/server.cpp +++ b/TAO/examples/Quoter/server.cpp @@ -211,13 +211,17 @@ Quoter_Server::init_naming_service (CORBA::Environment &ACE_TRY_ENV) int Quoter_Server::run (CORBA::Environment &ACE_TRY_ENV) { + ACE_UNUSED_ARG (ACE_TRY_ENV); + if (this->debug_level_ >= 1) ACE_DEBUG ((LM_DEBUG, "\nQuoter Example: Quoter_Server is running\n")); - orb_manager_.orb()->run (ACE_TRY_ENV); - ACE_CHECK_RETURN (-1); - + if (orb_manager_.orb()->run () == -1) + ACE_ERROR_RETURN ((LM_ERROR, + "%p\n", + "run"), + -1); return 0; } |