fixed proper shutdown of local CA subscriptions

This commit is contained in:
Jeff Hill
2001-10-03 23:47:24 +00:00
parent af42d394b9
commit 28ecb1209f
3 changed files with 16 additions and 3 deletions

View File

@@ -257,6 +257,9 @@ void dbServiceIO::destroyAllIO ( dbChannelIO & chan )
while ( ( pIO = chan.dbServicePrivateListOfIO::eventq.get() ) ) {
this->ioTable.remove ( *pIO );
tmp.add ( *pIO );
// this prevents a db event callback from coming
// through after the IO is deleted
pIO->unsubscribe ();
}
if ( chan.dbServicePrivateListOfIO::pBlocker ) {
this->ioTable.remove ( *chan.dbServicePrivateListOfIO::pBlocker );
@@ -265,7 +268,7 @@ void dbServiceIO::destroyAllIO ( dbChannelIO & chan )
while ( ( pIO = tmp.get() ) ) {
// If they call ioCancel() here it will be ignored
// because the IO has been unregistered above
pIO->channelDestroyException ();
pIO->channelDeleteException ();
pIO->destroy ();
}
if ( chan.dbServicePrivateListOfIO::pBlocker ) {