From: jfa Date: Tue, 11 Oct 2005 07:07:49 +0000 (+0000) Subject: Fix error of LocalTraceCollector: crash on exit from application X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e8e92f36717dc0022466132e2bfd283c853a87b2;p=modules%2Fkernel.git Fix error of LocalTraceCollector: crash on exit from application --- diff --git a/src/SALOMELocalTrace/LocalTraceCollector.cxx b/src/SALOMELocalTrace/LocalTraceCollector.cxx index 5ff0874d3..0ab0763fa 100644 --- a/src/SALOMELocalTrace/LocalTraceCollector.cxx +++ b/src/SALOMELocalTrace/LocalTraceCollector.cxx @@ -163,7 +163,7 @@ void* LocalTraceCollector::run(void *bid) // Loop until there is no more buffer to print, // and no ask for end from destructor. - while ((!_threadToClose) || myTraceBuffer->toCollect() ) + while ((!_threadToClose) && myTraceBuffer->toCollect() ) { int fullBuf = myTraceBuffer->retrieve(myTrace); if (myTrace.traceType == ABORT_MESS)