From 59a58abc7c1c980a255ef3fca86680050713b92c Mon Sep 17 00:00:00 2001 From: Remi Boure Date: Tue, 28 Mar 2023 09:51:20 +0200 Subject: [PATCH] Fix init of bitsRemaining --- src/main/java/fr/ntr/Packets.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/fr/ntr/Packets.java b/src/main/java/fr/ntr/Packets.java index 16b2cb3..35b0460 100644 --- a/src/main/java/fr/ntr/Packets.java +++ b/src/main/java/fr/ntr/Packets.java @@ -8,6 +8,7 @@ public class Packets { private int bitsNumberRemaining; public Packets(int startTimeSending){ + this.bitsNumberRemaining = packetSize; this.startTimeSending = startTimeSending; }