Skip to content

Commit

Permalink
expand a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 11, 2017
1 parent 272e4fd commit 210037a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/l2tp_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,9 @@ int main(int argc, char **argv)
}

// If the connection is lost, we start the reconnection timer.
// Hitting this code path should not be possible, but lets play safe.
// Hitting this code path should not be possible: Once we are in STATE_KEEPALIVE
// (which is a prerequisite for ever having `timer_establish < 0`),
// the only possible transition is to STATE_FAILED. But let's play safe.
if (timer_establish < 0 && main_context->state != STATE_KEEPALIVE) {
timer_establish = timer_now();
}
Expand Down

0 comments on commit 210037a

Please sign in to comment.