Changeset 4774cf6


Ignore:
Timestamp:
Apr 8, 2019 3:46:23 PM (15 months ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
488e89a
Parents:
6aeb89c
Message:

Order recorded destinations pt2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/AccessFilter.java

    r6aeb89c r4774cf6  
    129129            File file = recorder.getFile();
    130130            Set<String> breached = new LinkedHashSet<String>();
    131             synchronized(unknownDests) {
    132                 for (DestTracker tracker : unknownDests.values()) {
    133                     if (!tracker.getCounter().isBreached(threshold, now))
    134                         continue;
    135                     breached.add(tracker.getHash().toBase32());
    136                 }
    137             }
    138             if (breached.isEmpty())
    139                 continue;
    140131
    141132            // if the file already exists, add previously breached b32s
     
    152143                }
    153144            }
     145
     146            synchronized(unknownDests) {
     147                for (DestTracker tracker : unknownDests.values()) {
     148                    if (!tracker.getCounter().isBreached(threshold, now))
     149                        continue;
     150                    breached.add(tracker.getHash().toBase32());
     151                }
     152            }
     153
     154            if (breached.isEmpty())
     155                continue;
    154156
    155157            BufferedWriter writer = null;
Note: See TracChangeset for help on using the changeset viewer.