From 5b4c37df1707b4a62b4654b3d440c5d1ef6ea412 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 15 Jan 2004 03:16:54 +0000 Subject: [PATCH] make sure that evid is set before first subscription cb arrives --- src/ca/access.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/access.cpp b/src/ca/access.cpp index b75b0280a..734c34258 100644 --- a/src/ca/access.cpp +++ b/src/ca/access.cpp @@ -687,10 +687,10 @@ int epicsShareAPI ca_create_subscription ( new ( pChan->getClientCtx().subscriptionFreeList ) oldSubscription ( *pChan, pCallBack, pCallBackArg ) ); - pSubsr->begin ( guard, tmpType, count, mask ); if ( monixptr ) { *monixptr = pSubsr.get (); } + pSubsr->begin ( guard, tmpType, count, mask ); pSubsr.release (); // dont touch pTmp after this because // the first callback might have canceled it