diff options
Diffstat (limited to 'TAO/tests/MProfile_Forwarding/server.cpp')
-rwxr-xr-x | TAO/tests/MProfile_Forwarding/server.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/TAO/tests/MProfile_Forwarding/server.cpp b/TAO/tests/MProfile_Forwarding/server.cpp index 73f979b5771..ecc88e5f3b0 100755 --- a/TAO/tests/MProfile_Forwarding/server.cpp +++ b/TAO/tests/MProfile_Forwarding/server.cpp @@ -51,7 +51,7 @@ main (int argc, char *argv[]) PortableServer::POA_var root_poa = PortableServer::POA::_narrow (poa_object.in (), ACE_TRY_ENV); ACE_TRY_CHECK; - + // Get the POAManager of the RootPOA. PortableServer::POAManager_var poa_manager = root_poa->the_POAManager (ACE_TRY_ENV); @@ -64,7 +64,7 @@ main (int argc, char *argv[]) return 1; Simple_Server_i server_impl (orb.in ()); - + Simple_Server_var server = server_impl._this (ACE_TRY_ENV); ACE_TRY_CHECK; @@ -89,8 +89,9 @@ main (int argc, char *argv[]) } - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "orb->run"), -1); + orb->run (ACE_TRY_ENV); + ACE_TRY_CHECK; + ACE_DEBUG ((LM_DEBUG, "event loop finished\n")); root_poa->destroy (1, 1, ACE_TRY_ENV); |