Changeset 7649132


Ignore:
Timestamp:
Nov 21, 2015 2:33:22 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d30c1ec
Parents:
a468b3e
Message:

OCMOSJ: One more place attempting to update our own profile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/message/OutboundClientMessageOneShotJob.java

    ra468b3e r7649132  
    950950                    size = ((size + 1023) / 1024) * 1024; // messages are in ~1KB blocks
    951951               
    952                 for (int i = 0; i < _outTunnel.getLength(); i++) {
     952                // skip ourselves at first hop
     953                for (int i = 1; i < _outTunnel.getLength(); i++) {
    953954                    getContext().profileManager().tunnelTestSucceeded(_outTunnel.getPeer(i), sendTime);
    954955                    getContext().profileManager().tunnelDataPushed(_outTunnel.getPeer(i), sendTime, size);
     
    956957                _outTunnel.incrementVerifiedBytesTransferred(size);
    957958            }
    958             if (_inTunnel != null)
    959                 for (int i = 0; i < _inTunnel.getLength(); i++)
     959            if (_inTunnel != null) {
     960                // skip ourselves at last hop
     961                for (int i = 0; i < _inTunnel.getLength() - 1; i++) {
    960962                    getContext().profileManager().tunnelTestSucceeded(_inTunnel.getPeer(i), sendTime);
     963                }
     964            }
    961965        }
    962966
Note: See TracChangeset for help on using the changeset viewer.