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:
@@ -170,6 +170,16 @@ void netSubscription::subscribeIfRequired (
|
||||
}
|
||||
}
|
||||
|
||||
void netSubscription::unsubscribeIfRequired (
|
||||
epicsGuard < epicsMutex > & guard, nciu & chan )
|
||||
{
|
||||
if ( this->subscribed ) {
|
||||
chan.getPIIU(guard)->subscriptionCancelRequest (
|
||||
guard, chan, *this );
|
||||
this->subscribed = false;
|
||||
}
|
||||
}
|
||||
|
||||
void netSubscription::subscriptionUpdateIfRequired (
|
||||
epicsGuard < epicsMutex > & guard, nciu & chan )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user