Skip to content

Commit

Permalink
Merge pull request #343 from janhq/pump-version-and-hotfix
Browse files Browse the repository at this point in the history
feat: minor fix for more correct condition
  • Loading branch information
tikikun authored Jan 12, 2024
2 parents aa39a27 + ac73a76 commit f643013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/llamaCPP.h
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ struct llama_server_context {
std::unique_lock<std::mutex> lock(mutex_tasks);
condition_tasks.wait(lock, [&] {
return (!queue_tasks.empty() && model_loaded_external) ||
(!model_loaded_external);
(queue_tasks.empty() && !model_loaded_external);
});
}

Expand Down

0 comments on commit f643013

Please sign in to comment.