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

Commit ae4a7c6

Browse files
authored
Merge pull request #286 from janhq/284-bug-inferencing-not-stopping-background-task
284 bug inferencing not stopping background task
2 parents bcf3cf6 + 9b32770 commit ae4a7c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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);

llama.cpp

0 commit comments

Comments
 (0)