mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fix bug where some Indexer work may get thrown away.
This commit is contained in:
parent
b39000927a
commit
0300eccbf1
@ -622,7 +622,7 @@ void Indexer::ThreadLoop() {
|
|||||||
|
|
||||||
/* done with sync, remove all the threads in the pool to free resources. they'll
|
/* done with sync, remove all the threads in the pool to free resources. they'll
|
||||||
be re-created later if we index again. */
|
be re-created later if we index again. */
|
||||||
io.stop();
|
io.post([&io]() { io.stop(); });
|
||||||
threadPool.join_all();
|
threadPool.join_all();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user