summaryrefslogtreecommitdiff
path: root/TAO/tao/PICurrent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PICurrent.cpp')
-rw-r--r--TAO/tao/PICurrent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/TAO/tao/PICurrent.cpp b/TAO/tao/PICurrent.cpp
index f5ac255662a..df04f49fd11 100644
--- a/TAO/tao/PICurrent.cpp
+++ b/TAO/tao/PICurrent.cpp
@@ -115,7 +115,7 @@ TAO_PICurrent_Impl::~TAO_PICurrent_Impl (void)
// Make sure the peer TAO_PICurrent_Impl object no longer considers
// this TAO_PICurrent_Impl its peer since this object will no longer
// exist once this destructor completes execution.
- if (this->pi_peer_ != 0)
+ if (this->pi_peer_ != 0 && this->pi_peer_->pi_peer () == this)
this->pi_peer_->pi_peer (0);
}