make tcpiiu object unavailable to udp before shutting it down
This commit is contained in:
+6
-5
@@ -251,7 +251,6 @@ void cac::processRecvBacklog ()
|
||||
if ( ! piiu->alive () ) {
|
||||
assert ( this->pudpiiu && this->pSearchTmr );
|
||||
|
||||
bhe *pBHE = piiu->getBHE ();
|
||||
|
||||
if ( ! this->enablePreemptiveCallback ) {
|
||||
if ( this->fdRegFunc ) {
|
||||
@@ -260,6 +259,12 @@ void cac::processRecvBacklog ()
|
||||
}
|
||||
}
|
||||
|
||||
bhe *pBHE = piiu->getBHE ();
|
||||
if ( pBHE ) {
|
||||
this->beaconTable.remove ( *pBHE );
|
||||
pBHE->destroy ();
|
||||
}
|
||||
|
||||
if ( piiu->channelCount () ) {
|
||||
char hostNameTmp[64];
|
||||
piiu->hostName ( hostNameTmp, sizeof ( hostNameTmp ) );
|
||||
@@ -276,10 +281,6 @@ void cac::processRecvBacklog ()
|
||||
this->iiuList.remove ( *piiu );
|
||||
this->iiuListLimbo.add ( *piiu );
|
||||
|
||||
if ( pBHE ) {
|
||||
this->beaconTable.remove ( *pBHE );
|
||||
pBHE->destroy ();
|
||||
}
|
||||
|
||||
this->pSearchTmr->resetPeriod ( CA_RECAST_DELAY );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user