removed overly stringent assert

This commit is contained in:
Jeff Hill
2004-02-02 20:13:15 +00:00
parent b10a642321
commit c1e2dc29bd

View File

@@ -560,13 +560,15 @@ void nciu::sendSubscriptionUpdateRequests ( epicsGuard < epicsMutex > & guard )
tsDLIter < baseNMIU > next = pNetIO;
next++;
class netSubscription * pSubscr = pNetIO->isSubscription ();
// disconnected channels should have only subscription IO attached
assert ( pSubscr );
try {
pSubscr->subscriptionUpdateIfRequired ( guard, *this );
}
catch ( ... ) {
errlogPrintf ( "CAC: failed to send subscription request during channel connect\n" );
// the channel becomes connected while subscription update requests
// are pending so IO types other than subscription IO might be attached
if ( pSubscr ) {
try {
pSubscr->subscriptionUpdateIfRequired ( guard, *this );
}
catch ( ... ) {
errlogPrintf ( "CAC: failed to send subscription request during channel connect\n" );
}
}
pNetIO = next;
}