diff --git a/src/ca/oldCAC.cpp b/src/ca/oldCAC.cpp index d0d7083ed..e7ab18a9f 100644 --- a/src/ca/oldCAC.cpp +++ b/src/ca/oldCAC.cpp @@ -34,7 +34,7 @@ oldCAC::oldCAC ( bool enablePreemptiveCallback ) : pVPrintfFunc ( errlogVprintf ), fdRegFunc ( 0 ), fdRegArg ( 0 ), pndRecvCnt ( 0u ), ioSeqNo ( 0u ) { - if ( enablePreemptiveCallback ) { + if ( ! enablePreemptiveCallback ) { this->pCallbackGuard = new epicsGuard < callbackMutex > ( this->clientCtx.callbackGuardFactory () ); }