Skip to content

Commit

Permalink
SSU2: Prevent rare IAE in peer test timer (Gitlab #433)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzi2p committed Sep 30, 2023
1 parent d7d51f6 commit cb47880
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,9 @@ public void timeReached() {
} else {
// received from both Bob and Charlie, but we haven't received a
// second message from Charlie yet
sendTestToCharlie();
if (state.getCharliePort() != PENDING_PORT)
sendTestToCharlie();
// else msg 5 wasn't from a valid ip/port ???
}
if (bobTime > 0 && charlieTime <= 0) {
if (state.getBeginTime() + MAX_CHARLIE_LIFETIME < now) {
Expand Down

0 comments on commit cb47880

Please sign in to comment.