supress channel destroy exception in "old" API layer and reclaim storage

for oldSubscription when channel is destroyed
This commit is contained in:
Jeff Hill
2001-08-16 01:18:05 +00:00
parent 977299cffd
commit 217cc10840

View File

@@ -39,14 +39,18 @@ void oldSubscription::exception (
int status, const char * /* pContext */,
unsigned type, arrayElementCount count )
{
struct event_handler_args args;
args.usr = this->pPrivate;
args.chid = &this->chan;
args.type = type;
args.count = count;
args.status = status;
args.dbr = 0;
( *this->pFunc ) ( args );
if ( status == ECA_CHANDESTROY ) {
delete this;
}
else if ( status != ECA_DISCONN ) {
struct event_handler_args args;
args.usr = this->pPrivate;
args.chid = &this->chan;
args.type = type;
args.count = count;
args.status = status;
args.dbr = 0;
( *this->pFunc ) ( args );
}
}