fixed udp shutdown in ~cac

This commit is contained in:
Jeff Hill
2002-05-13 21:24:01 +00:00
parent 210222a2f3
commit 632e7da1ac
+9 -5
View File
@@ -217,15 +217,15 @@ cac::cac ( cacNotify & notifyIn, bool enablePreemptiveCallbackIn ) :
cac::~cac ()
{
// this blocks until the UDP thread exits so that
// it will not sneak in any new clients
//
// lock intentionally not held here so that we dont deadlock
// waiting for the UDP thread to exit while it is waiting to
// get the lock.
// this blocks until the UDP thread exits so that
// it will not sneak in any new clients
delete this->pudpiiu;
this->pudpiiu = 0; // for initiateAbortShutdown()
if ( this->pudpiiu ) {
this->pudpiiu->shutdown ();
}
//
// shutdown all tcp connections
@@ -254,6 +254,10 @@ cac::~cac ()
this->iiuUninstall.wait ();
}
if ( this->pudpiiu ) {
delete this->pudpiiu;
}
freeListCleanup ( this->tcpSmallRecvBufFreeList );
freeListCleanup ( this->tcpLargeRecvBufFreeList );