Skip to content

Commit

Permalink
libtrap - tcpip & tls ifc - fix container duplication when terminatio…
Browse files Browse the repository at this point in the history
…n signal was received.
  • Loading branch information
SiskaPavel committed Sep 2, 2024
1 parent a8d19d1 commit 5aa86b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libtrap/src/ifc_tcpip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ send_blocking_mode(void *arg)
// is next container ready
while (!is_next_container_ready(c, cl)) {
if (c->is_terminated) {
break;
goto cleanup;
}
sleep_time = calculate_sleep(sleep_time);
usleep(sleep_time);
Expand Down
2 changes: 1 addition & 1 deletion libtrap/src/ifc_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ send_blocking_mode(void *arg)
// is next container ready
while (!is_next_container_ready(c, cl)) {
if (c->is_terminated) {
break;
goto cleanup;
}
sleep_time = calculate_sleep(sleep_time);
usleep(sleep_time);
Expand Down

0 comments on commit 5aa86b7

Please sign in to comment.