Skip to content

Commit 1058ddf

Browse files
committed
Fixed joinStoppedThreads() getting stuck
1 parent cea908c commit 1058ddf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpr/threadpool.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ void ThreadPool::joinStoppedThreads() {
169169
}
170170
iter = workers.erase(iter);
171171
workerJoinReadyCount--;
172+
} else {
173+
iter++;
172174
}
173175
}
174176
}

0 commit comments

Comments
 (0)