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

@@ -64,7 +64,16 @@ void dbSubscriptionIO::destroy ()
delete this;
}
void dbSubscriptionIO::channelDestroyException ()
// lock should be applied
void dbSubscriptionIO::unsubscribe ()
{
if ( this->es ) {
db_cancel_event ( this->es );
this->es = 0;
}
}
void dbSubscriptionIO::channelDeleteException ()
{
this->notify.exception ( ECA_CHANDESTROY,
this->chan.pName(), this->type, this->count );