Skip to content

Commit

Permalink
add check (#3503)
Browse files Browse the repository at this point in the history
  • Loading branch information
tphung3 authored Sep 21, 2023
1 parent e584723 commit f6d4481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taskvine/src/worker/vine_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ struct vine_process *find_library_for_function(const char *library_name)

ITABLE_ITERATE(procs_running, task_id, p)
{
if (!strcmp(p->task->provides_library, library_name)) {
if (p->task->provides_library && !strcmp(p->task->provides_library, library_name)) {
if (p->library_ready && p->functions_running < p->task->function_slots) {
return p;
}
Expand Down

0 comments on commit f6d4481

Please sign in to comment.