Skip to content

Commit 208f5be

Browse files
Merge pull request #34 from dbechrd/patch-1
Reset time and stats when resetting an endpoint
2 parents 49b09d0 + 021c919 commit 208f5be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reliable.c

+7
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,13 @@ void reliable_endpoint_reset( struct reliable_endpoint_t * endpoint )
12911291
{
12921292
reliable_assert( endpoint );
12931293

1294+
endpoint->time = 0;
1295+
endpoint->rtt = 0;
1296+
endpoint->packet_loss = 0;
1297+
endpoint->sent_bandwidth_kbps = 0;
1298+
endpoint->received_bandwidth_kbps = 0;
1299+
endpoint->acked_bandwidth_kbps = 0;
1300+
12941301
endpoint->num_acks = 0;
12951302
endpoint->sequence = 0;
12961303

0 commit comments

Comments
 (0)