summaryrefslogtreecommitdiff
path: root/TAO/tao/Connector_Impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Connector_Impl.cpp')
-rw-r--r--TAO/tao/Connector_Impl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/TAO/tao/Connector_Impl.cpp b/TAO/tao/Connector_Impl.cpp
index 6c4023da250..757a511d2ae 100644
--- a/TAO/tao/Connector_Impl.cpp
+++ b/TAO/tao/Connector_Impl.cpp
@@ -38,6 +38,12 @@ TAO_Connect_Creation_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh)
this->lite_flag_,
this->arg_),
-1);
+
+ // Add a reference count. Why is this needed? We need this to make
+ // sure that the connector doesnt delete this handler when we are
+ // waiting for non-blocking connects to complete.
+ sh->incr_refcount ();
+
return 0;
}