Skip to content

Commit

Permalink
upstream: fix mutex lock on pending destroy connections
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Sep 7, 2021
1 parent c8eb7d8 commit d36e7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flb_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ int flb_upstream_conn_pending_destroy(struct flb_upstream *u)
}

if (u->thread_safe == FLB_TRUE) {
pthread_mutex_lock(&u->mutex_lists);
pthread_mutex_unlock(&u->mutex_lists);
}

return 0;
Expand Down

0 comments on commit d36e7ab

Please sign in to comment.