Explorar o código

Merge pull request #8758 from ghalliday/issue15705

HPCC-15705 Fix regression in HPCC-15362

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=9) %!d(string=hai) anos
pai
achega
220c327694
Modificáronse 1 ficheiros con 1 adicións e 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))
         {