Changeset db98277


Ignore:
Timestamp:
Jun 5, 2013 4:28:10 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
239cd2b
Parents:
905eed6
Message:

minor improvement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/TransportImpl.java

    r905eed6 rdb98277  
    575575            long now = _context.clock().now();
    576576            synchronized (_unreachableEntries) {
    577                 for (Iterator iter = _unreachableEntries.keySet().iterator(); iter.hasNext(); ) {
    578                     Hash peer = (Hash)iter.next();
    579                     Long when = _unreachableEntries.get(peer);
     577                for (Iterator<Long> iter = _unreachableEntries.values().iterator(); iter.hasNext(); ) {
     578                    Long when = iter.next();
    580579                    if (when.longValue() + UNREACHABLE_PERIOD < now)
    581580                        iter.remove();
Note: See TracChangeset for help on using the changeset viewer.