Codebase list nzbget / 05c8418
#593: 794f240f4827f336aeedb6f99cf2a871554f0949: fixed potential lock up due to race condition Andrey Prygunkov 5 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
702702 {
703703 // wait for stop signal
704704 Guard guard(m_stopMutex);
705 m_stopCond.Wait(m_stopMutex);
705 m_stopCond.Wait(m_stopMutex, [&]{ return m_stopped; });
706706 }
707707 }
708708
908908 }
909909
910910 // trigger stop/reload signal
911 Guard guard(m_stopMutex);
911912 m_stopped = true;
912913 m_stopCond.NotifyAll();
913914 }