]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix error of LocalTraceCollector: crash on exit from application
authorjfa <jfa@opencascade.com>
Tue, 11 Oct 2005 07:07:49 +0000 (07:07 +0000)
committerjfa <jfa@opencascade.com>
Tue, 11 Oct 2005 07:07:49 +0000 (07:07 +0000)
src/SALOMELocalTrace/LocalTraceCollector.cxx

index 5ff0874d397ab6064d1b2df730d7e8afc7444af1..0ab0763faf3fe02fd8f6d7e7dae2e38175de9989 100644 (file)
@@ -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)