fix(file-index):解决关闭所有索引后再打开监听丢失的问题

This commit is contained in:
iaom 2024-03-08 17:58:12 +08:00
parent 9efae17889
commit 9d48e482eb
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ void IndexScheduler::stop(BatchIndexer::Targets target)
} }
if(m_indexStop.LOAD && m_contentIndexStop.LOAD && m_ocrContentIndexStop.LOAD) { if(m_indexStop.LOAD && m_contentIndexStop.LOAD && m_ocrContentIndexStop.LOAD) {
m_fileWatcher.removeWatch(); m_fileWatcher.removeWatch();
m_watchInstalled = false;
m_threadPool.clear(); m_threadPool.clear();
m_threadPool.waitForDone(-1); m_threadPool.waitForDone(-1);
m_threadPoolForRTUpdate.clear(); m_threadPoolForRTUpdate.clear();