From 0300eccbf18e2869f38bf621c0eeb946f33f27d8 Mon Sep 17 00:00:00 2001 From: casey Date: Wed, 1 Jul 2020 15:57:24 -0700 Subject: [PATCH] Fix bug where some Indexer work may get thrown away. --- src/core/library/Indexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/library/Indexer.cpp b/src/core/library/Indexer.cpp index 38d7b8354..44fa3f02f 100644 --- a/src/core/library/Indexer.cpp +++ b/src/core/library/Indexer.cpp @@ -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 {