From da412768fad1dc0e7d243b7eb6492c4916cfd3df Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 21 Jun 2001 00:29:55 +0000 Subject: [PATCH] eliminate redundant code --- src/ca/cac.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; }