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

Commit f643013

Browse files
authored
Merge pull request #343 from janhq/pump-version-and-hotfix
feat: minor fix for more correct condition
2 parents aa39a27 + ac73a76 commit f643013

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/llamaCPP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ struct llama_server_context {
15461546
std::unique_lock<std::mutex> lock(mutex_tasks);
15471547
condition_tasks.wait(lock, [&] {
15481548
return (!queue_tasks.empty() && model_loaded_external) ||
1549-
(!model_loaded_external);
1549+
(queue_tasks.empty() && !model_loaded_external);
15501550
});
15511551
}
15521552

llama.cpp

0 commit comments

Comments
 (0)