From 2666e9d62ba4977d530a632ae685a3f15faa005e Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Mon, 16 Aug 2010 15:49:52 -0500 Subject: [PATCH] Bug fixes to CA client introduced by CA-over-TCP code. --- src/ca/cac.cpp | 1 + src/ca/tcpiiu.cpp | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/ca/cac.cpp b/src/ca/cac.cpp index b25c076f2..149cfd9bc 100644 --- a/src/ca/cac.cpp +++ b/src/ca/cac.cpp @@ -286,6 +286,7 @@ cac::~cac () // // shutdown all tcp circuits // + this->iiuExistenceCount = this->circuitList.count(); tsDLIter < tcpiiu > iter = this->circuitList.firstIter (); while ( iter.valid() ) { // this causes a clean shutdown to occur diff --git a/src/ca/tcpiiu.cpp b/src/ca/tcpiiu.cpp index 214b0687c..7b775cb50 100644 --- a/src/ca/tcpiiu.cpp +++ b/src/ca/tcpiiu.cpp @@ -1850,10 +1850,7 @@ void tcpiiu::disconnectAllChannels ( } this->channelCountTot = 0u; - - if ( ! isNameService () ) { - this->initiateCleanShutdown ( guard ); - } + this->initiateCleanShutdown ( guard ); } void tcpiiu::unlinkAllChannels ( @@ -1912,10 +1909,7 @@ void tcpiiu::unlinkAllChannels ( } this->channelCountTot = 0u; - - if ( ! isNameService () ) { - this->initiateCleanShutdown ( guard ); - } + this->initiateCleanShutdown ( guard ); } void tcpiiu::installChannel (