Skip to content

Commit

Permalink
Reset time and stats when resetting an endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Bechard <[email protected]>
  • Loading branch information
dbechrd authored Aug 25, 2024
1 parent 49b09d0 commit 021c919
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions reliable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,13 @@ void reliable_endpoint_reset( struct reliable_endpoint_t * endpoint )
{
reliable_assert( endpoint );

endpoint->time = 0;
endpoint->rtt = 0;
endpoint->packet_loss = 0;
endpoint->sent_bandwidth_kbps = 0;
endpoint->received_bandwidth_kbps = 0;
endpoint->acked_bandwidth_kbps = 0;

endpoint->num_acks = 0;
endpoint->sequence = 0;

Expand Down

0 comments on commit 021c919

Please sign in to comment.