summaryrefslogtreecommitdiff
path: root/TAO/examples/POA/Default_Servant/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/POA/Default_Servant/server.cpp')
-rw-r--r--TAO/examples/POA/Default_Servant/server.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/TAO/examples/POA/Default_Servant/server.cpp b/TAO/examples/POA/Default_Servant/server.cpp
index 2f2d91ec750..7b8a277c3b0 100644
--- a/TAO/examples/POA/Default_Servant/server.cpp
+++ b/TAO/examples/POA/Default_Servant/server.cpp
@@ -116,13 +116,15 @@ main (int argc, char **argv)
ACE_TRY_CHECK;
for (CORBA::ULong i = 0;
- i < policies.length ();
+ i < policies.length () && ACE_TRY_ENV.exception () == 0;
++i)
{
CORBA::Policy_ptr policy = policies[i];
policy->destroy (ACE_TRY_ENV);
- ACE_TRY_CHECK;
+ ACE_TRY_CHECK;
}
+
+
// Create a File System Implementation object in first_poa
FileImpl::System file_system_impl (first_poa.in ());