Explorar el Código

HPCC-15705 Fix regression in HPCC-15362

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday hace 9 años
padre
commit
f14109d2a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      system/jlib/jthread.cpp

+ 1 - 1
system/jlib/jthread.cpp

@@ -604,7 +604,7 @@ void CThreadedPersistent::start()
 bool CThreadedPersistent::join(unsigned timeout)
 {
     unsigned expected = s_running;
-    if (!state.compare_exchange_strong(expected, s_joining))
+    if (state.compare_exchange_strong(expected, s_joining))
     {
         if (!joinSem.wait(timeout))
         {