#40 Fix crash on Linux.

This commit is contained in:
XMRig 2017-07-19 04:28:59 +03:00
parent ebf54c6d04
commit 8f38462bbe
8 changed files with 21 additions and 8 deletions

View file

@ -38,7 +38,7 @@ SingleWorker::SingleWorker(Handle *handle)
void SingleWorker::start()
{
while (true) {
while (Workers::sequence() > 0) {
if (Workers::isPaused()) {
do {
std::this_thread::sleep_for(std::chrono::milliseconds(200));