diff --git a/src/ca/cac.cpp b/src/ca/cac.cpp index e41a75758..b47c66636 100644 --- a/src/ca/cac.cpp +++ b/src/ca/cac.cpp @@ -1177,7 +1177,7 @@ void cac::destroyAllIO ( nciu &chan ) tsDLList < baseNMIU > eventQ; { epicsAutoMutex autoMutex ( this->defaultMutex ); - while ( baseNMIU *pIO = eventQ.get () ) { + while ( baseNMIU *pIO = chan.cacPrivateListOfIO::eventq.get () ) { this->ioTable.remove ( *pIO ); eventQ.add ( *pIO ); }