mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-09 04:20:42 +00:00
chat: join ChatLLM threads without calling destructors (#2043)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
@@ -95,6 +95,10 @@ ChatLLM::ChatLLM(Chat *parent, bool isServer)
|
||||
|
||||
ChatLLM::~ChatLLM()
|
||||
{
|
||||
destroy();
|
||||
}
|
||||
|
||||
void ChatLLM::destroy() {
|
||||
m_stopGenerating = true;
|
||||
m_llmThread.quit();
|
||||
m_llmThread.wait();
|
||||
|
Reference in New Issue
Block a user