This commit is contained in:
Jeff Hill
2001-09-10 20:43:35 +00:00
parent bf5ffaf41b
commit 049953e8ac
+3 -3
View File
@@ -1733,17 +1733,17 @@ void cac::notifyDestroyFD ( SOCKET sock ) const
void cac::uninstallIIU ( tcpiiu & iiu )
{
epicsAutoMutex autoMutex ( this->mutex );
if ( iiu.channelCount () ) {
if ( iiu.channelCount() ) {
char hostNameTmp[64];
iiu.hostName ( hostNameTmp, sizeof ( hostNameTmp ) );
genLocalExcep ( *this, ECA_DISCONN, hostNameTmp );
}
osiSockAddr addr = iiu.getNetworkAddress ();
osiSockAddr addr = iiu.getNetworkAddress();
if ( addr.sa.sa_family == AF_INET ) {
inetAddrID tmp ( addr.ia );
bhe *pBHE = this->beaconTable.lookup ( tmp );
if ( pBHE ) {
pBHE->unregisterIIU ( iiu);
pBHE->unregisterIIU ( iiu );
}
}
assert ( this->pudpiiu );