瀏覽代碼

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 9 年之前
父節點
當前提交
220c327694
共有 1 個文件被更改,包括 1 次插入1 次删除
  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))
         {