summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp32
1 files changed, 17 insertions, 15 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp
index 5f459ed8ef9..5a95c92f62d 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp
@@ -34,23 +34,25 @@ TAO_LB_Pull_Handler::handle_timeout (
++i)
{
TAO_LB_Location_Map_Entry *location = (*i).int_id_;
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- location->load_list =
- location->load_monitor->current_load (ACE_TRY_ENV);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
+ if (!CORBA::is_nil (location->load_monitor.in ()))
{
- // Catch the exception and ignore it.
-
- if (TAO_debug_level > 0)
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "(%P|%t) Load monitoring exception");
+ ACE_DECLARE_NEW_CORBA_ENV;
+ ACE_TRY
+ {
+ location->load_list =
+ location->load_monitor->current_load (ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ // Catch the exception and ignore it.
+
+ if (TAO_debug_level > 0)
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "(%P|%t) Load monitoring exception");
+ }
+ ACE_ENDTRY;
}
- ACE_ENDTRY;
}
return 0;