Skip to content

Commit

Permalink
Fixed log downloading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
scaryghost committed Oct 13, 2015
1 parent afc11ca commit 3b88da1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -503,7 +503,7 @@ private class VariableLoggable extends Loggable {
private static final String JSON_FIELD_EXPECTED_SIZE= "expected_size";

///< Use linked hash map to preserve the order in which log IDs are received from the board
private final LinkedHashMap<Byte, Queue<byte[]>> logEntries;
private final LinkedHashMap<Byte, ConcurrentLinkedQueue<byte[]>> logEntries;
private final int expectedSize;

public VariableLoggable(String key, Collection<Byte> logIds, Class<? extends Message> msgClass, int expectedSize) {
Expand All @@ -514,7 +514,7 @@ public VariableLoggable(String key, Collection<Byte> logIds, Class<? extends Mes
logEntries= new LinkedHashMap<>();
for(Byte id: logIds) {
dataLoggers.put(new ResponseHeader(LoggingRegister.READOUT_NOTIFY, id), this);
logEntries.put(id, new LinkedList<byte[]>());
logEntries.put(id, new ConcurrentLinkedQueue<byte[]>());
}
}

Expand Down

0 comments on commit 3b88da1

Please sign in to comment.