diff --git a/src/ca/cac.cpp b/src/ca/cac.cpp index b619afbb3..108608e63 100644 --- a/src/ca/cac.cpp +++ b/src/ca/cac.cpp @@ -962,12 +962,10 @@ void cac::flushIfRequired ( nciu &chan ) // send thread. The same applies to the UDP thread for // locking hierarchy reasons. bool blockPermit = true; - if ( this->pRecvProcThread ) { - if ( this->recvProcessThreadIsCurrentThread () ) { - blockPermit = false; - } + if ( this->recvProcessThreadIsCurrentThread () ) { + blockPermit = false; } - if ( this->pudpiiu ) { + if ( this->pudpiiu && blockPermit ) { if ( this->pudpiiu->isCurrentThread () ) { blockPermit = false; }