]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/experimental/executor
libstdc++: Fix net::system_context stop condition
[thirdparty/gcc.git] / libstdc++-v3 / include / experimental / executor
index 763f4ce0e1709223cd794dbb5926ac4a491faa06..b5dc303575697bd6b46d02961fa92480906ea4ce 100644 (file)
@@ -902,7 +902,7 @@ inline namespace v1
          {
            unique_lock<mutex> __lock(_M_mtx);
            _M_cv.wait(__lock,
-                      [this]{ return !_M_stopped && !_M_tasks.empty(); });
+                      [this]{ return _M_stopped || !_M_tasks.empty(); });
            if (_M_stopped)
              return;
            __f = std::move(_M_tasks.front());