Skip to content

Commit 68faecb

Browse files
committed
Fix an issue that may cause a hang at file close time
1 parent 9256538 commit 68faecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/h5_async_vol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@ push_task_to_abt_pool(async_qhead_t *qhead, ABT_pool pool, const char *call_func
25342534
// Can push the current task to execution
25352535
if (task_elt && task_elt->is_done == 0 && task_elt->in_abt_pool == 0) {
25362536
ntask = get_n_running_task_in_queue_nolock(task_elt, __func__);
2537-
if (ntask > 1) {
2537+
if (ntask > 0) {
25382538
func_log_int1(__func__, "skipping create thread, ntask in pool", ntask);
25392539
ret_val = -1;
25402540
goto done;

0 commit comments

Comments
 (0)