summaryrefslogtreecommitdiff
path: root/TAO/tao/Thread_Per_Connection_Handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Thread_Per_Connection_Handler.cpp')
-rw-r--r--TAO/tao/Thread_Per_Connection_Handler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/TAO/tao/Thread_Per_Connection_Handler.cpp b/TAO/tao/Thread_Per_Connection_Handler.cpp
index d69e6dcf0df..cc9d6edac94 100644
--- a/TAO/tao/Thread_Per_Connection_Handler.cpp
+++ b/TAO/tao/Thread_Per_Connection_Handler.cpp
@@ -13,14 +13,12 @@ TAO_Thread_Per_Connection_Handler::TAO_Thread_Per_Connection_Handler (
TAO_Connection_Handler *ch)
: ch_ (ch)
{
- // REFCNT: Matches decr_refcount() in the destructor.
- (void) this->ch_->incr_refcount ();
+ this->ch_->transport ()->add_reference ();
}
TAO_Thread_Per_Connection_Handler::~TAO_Thread_Per_Connection_Handler (void)
{
- // REFCNT: Matches incr_refcount() in the constructor.
- (void) this->ch_->decr_refcount ();
+ this->ch_->transport ()->remove_reference ();
}
int