summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Security/Send_File/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Security/Send_File/server.cpp')
-rw-r--r--TAO/orbsvcs/examples/Security/Send_File/server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/orbsvcs/examples/Security/Send_File/server.cpp b/TAO/orbsvcs/examples/Security/Send_File/server.cpp
index e8da4bb3aaf..429696fa557 100644
--- a/TAO/orbsvcs/examples/Security/Send_File/server.cpp
+++ b/TAO/orbsvcs/examples/Security/Send_File/server.cpp
@@ -87,8 +87,9 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_TRY_ENV);
ACE_TRY_CHECK;
- 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);