summaryrefslogtreecommitdiff
path: root/TAO/tao/Thread_Lane_Resources.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-03-17 09:48:48 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-03-17 09:48:48 +0000
commit4c3b8a2b27263ce48a37b51b87cbcb536c8fa080 (patch)
tree30bf56762ea2c9300f8bdceb4596c5531b4d7db8 /TAO/tao/Thread_Lane_Resources.cpp
parentd40793d831d1d122010713d78e74a4d51b3615ae (diff)
downloadATCD-4c3b8a2b27263ce48a37b51b87cbcb536c8fa080.tar.gz
Diffstat (limited to 'TAO/tao/Thread_Lane_Resources.cpp')
-rw-r--r--TAO/tao/Thread_Lane_Resources.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tao/Thread_Lane_Resources.cpp b/TAO/tao/Thread_Lane_Resources.cpp
index 6552de0463d..7ca4d8cda39 100644
--- a/TAO/tao/Thread_Lane_Resources.cpp
+++ b/TAO/tao/Thread_Lane_Resources.cpp
@@ -493,6 +493,7 @@ TAO_Thread_Lane_Resources::shutdown_reactor (void)
leader_follower.lock ());
ACE_Reactor *reactor = leader_follower.reactor ();
+ TAO_Resource_Factory *resource_factory = this->orb_core_.resource_factory ();
// Wakeup all the threads waiting blocked in the event loop, this
// does not guarantee that they will all go away, but reduces the
@@ -502,7 +503,7 @@ TAO_Thread_Lane_Resources::shutdown_reactor (void)
// they finish, when the last one does it will shutdown the reactor
// for us. Meanwhile no new requests will be accepted because the
// POA will not process them.
- if (!this->orb_core_.resource_factory ()->drop_replies_during_shutdown () &&
+ if (resource_factory && !resource_factory->drop_replies_during_shutdown () &&
leader_follower.has_clients ())
{
reactor->wakeup_all_threads ();