Skip to content

Commit c16c14b

Browse files
committed
Fixed stored rules buffer not reseting after sending data and messed up user stats
1 parent 55f7c25 commit c16c14b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/camoga/ant/net/Client.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class Client {
5353
static DataInputStream is;
5454
static String host;
5555
static final int PORT = 7357;
56-
static final Version VERSION = new Version(1,0,0);
56+
static final Version VERSION = new Version(1,0,1);
5757

5858
static int ASSIGN_SIZE = 50;
5959
static long lastResultsTime;
@@ -176,6 +176,7 @@ public synchronized static void sendAssignmentResult() {
176176
if(storedrules[i].size() > 1) {
177177
Packet03Result packet = new Packet03Result(i,storedrules[i].size()/offset[i],storedrules[i]);
178178
packet.writeData(os);
179+
storedrules[i].reset();
179180
datasent = true;
180181
}
181182
}

0 commit comments

Comments
 (0)