diff options
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/airplane_i.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/airplane_i.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/airplane_i.cpp b/TAO/orbsvcs/tests/ImplRepo/airplane_i.cpp index c37e88f3ea8..c10222a91a0 100644 --- a/TAO/orbsvcs/tests/ImplRepo/airplane_i.cpp +++ b/TAO/orbsvcs/tests/ImplRepo/airplane_i.cpp @@ -7,7 +7,8 @@ ACE_RCSID(ImplRepo, airplane_i, "$Id$") // Constructor - Airplane_i::Airplane_i (int /*shutdown*/) +Airplane_i::Airplane_i (int shutdown) +: shutdown_ (shutdown) { // Seed the random number generator // Note: This server should not be run with thread-per-request since the seeding @@ -35,6 +36,9 @@ Airplane_i::get_plane (CORBA::Environment &ACE_TRY_ENV) if (TAO_debug_level) ACE_DEBUG ((LM_DEBUG, "Airplane_i::get_plane\n")); + if (this->shutdown_ != 0) + TAO_ORB_Core_instance ()->orb ()->shutdown (); + switch (ACE_OS::rand () % 24) { case 0: |