fixed logic surrounding subscription cancel

1) When channel is destroyed, but subscription not installed into a server
2) When subscription is destroyed, but has not been installed in server
This commit is contained in:
Jeff Hill
2004-05-21 00:57:51 +00:00
parent 41aeb709e5
commit 329172afc7
4 changed files with 19 additions and 7 deletions

View File

@@ -658,8 +658,7 @@ baseNMIU * cac::destroyIO (
if ( pIO ) {
class netSubscription * pSubscr = pIO->isSubscription ();
if ( pSubscr ) {
chan.getPIIU(guard)->subscriptionCancelRequest (
guard, chan, *pSubscr );
pSubscr->unsubscribeIfRequired ( guard, chan );
}
// this uninstalls from the list and destroys the IO