mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 11:58:53 +00:00
Fix destruction and tear down of the embedding thread. (#2328)
* Fix destruction and tear down of the embedding thread. Signed-off-by: Adam Treat <treat.adam@gmail.com> * Fix order of deletion to prevent use after free. Signed-off-by: Adam Treat <treat.adam@gmail.com> --------- Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
@@ -552,6 +552,7 @@ Database::~Database()
|
||||
{
|
||||
m_dbThread.quit();
|
||||
m_dbThread.wait();
|
||||
delete m_embLLM;
|
||||
}
|
||||
|
||||
void Database::scheduleNext(int folder_id, size_t countForFolder)
|
||||
|
Reference in New Issue
Block a user