This commit is contained in:
Jeff Hill
2001-10-03 22:37:30 +00:00
parent 932813b85e
commit 8ca27c4b4e

View File

@@ -1228,10 +1228,8 @@ void cac::privateDestroyAllIO ( nciu & chan )
while ( baseNMIU *pIO = chan.cacPrivateListOfIO::eventq.get() ) {
this->ioTable.remove ( *pIO );
class netSubscription *pSubscr = pIO->isSubscription ();
if ( pSubscr ) {
if ( chan.connected() ) {
chan.getPIIU()->subscriptionCancelRequest ( chan, *pSubscr );
}
if ( pSubscr && chan.connected() ) {
chan.getPIIU()->subscriptionCancelRequest ( chan, *pSubscr );
}
{
epicsAutoMutexRelease autoMutexRelease ( this->mutex );