mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 00:19:20 +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
|
||||
be re-created later if we index again. */
|
||||
io.stop();
|
||||
io.post([&io]() { io.stop(); });
|
||||
threadPool.join_all();
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user