Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 9b32770

Browse files
committed
kill the extra thread when the program is destroy
1 parent b506b04 commit 9b32770

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/llamaCPP.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,7 @@ class llamaCPP : public drogon::HttpController<llamaCPP> {
18581858
}
18591859
}
18601860

1861+
~llamaCPP() { stopBackgroundTask(); }
18611862
METHOD_LIST_BEGIN
18621863
// list path definitions here;
18631864
METHOD_ADD(llamaCPP::chatCompletion, "chat_completion", Post);

0 commit comments

Comments
 (0)