chunklist

This commit is contained in:
Michael Scholz 2013-02-11 13:05:40 +01:00
parent f947628b17
commit f904685dbf

View File

@ -246,7 +246,10 @@ public class UDPHandler implements Runnable {
if(chunklist.get(fid) == null){
chunklist.put(fid, new HashMap<Integer,String>());
}
chunklist.get(fid).put(chunkID, chunkContent);
if(chunklist.get(fid).get(chunkID) == null){
chunklist.get(fid).put(chunkID, chunkContent);
}
if(chunklist.get(fid).size() >= chunkCount){
LOGGER.log(Level.INFO,"FILE complete file: "+fileID+" count: "+chunkCount+" id: "+chunkID);