Skip to content

Commit

Permalink
in bad network conditions econn might be null and ccall stuck in TERM…
Browse files Browse the repository at this point in the history
…INATING state
  • Loading branch information
z-dule committed Jan 13, 2025
1 parent f79fcac commit 8319805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ccall/ccall.c
Original file line number Diff line number Diff line change
Expand Up @@ -3824,7 +3824,7 @@ static void ccall_end_with_err(struct ccall *ccall, int err)
}

userlist_incall_clear(ccall->userl, false, false);
if (ccall->ecall)
if (ccall->ecall && ecall_get_econn(ccall->ecall))
ecall_end(ccall->ecall);
else
set_state(ccall, CCALL_STATE_IDLE);
Expand Down
2 changes: 1 addition & 1 deletion src/ecall/ecall.c
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@ void ecall_end(struct ecall *ecall)
if (!ecall)
return;

info("ecall(%p): [self=%s] end\n", ecall, anon_id(userid_anon, ecall->userid_self));
info("ecall(%p): [self=%s] econn: %p end\n", ecall, anon_id(userid_anon, ecall->userid_self), ecall->econn);

/* disconnect all connections */
econn_end(ecall->econn);
Expand Down

0 comments on commit 8319805

Please sign in to comment.