Changeset 409207e0 for router


Ignore:
Timestamp:
Mar 7, 2019 3:01:10 PM (13 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d6a53cc
Parents:
95366c0
Message:

more selectors

Location:
router/java/src/net/i2p/router
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/peermanager/PeerTestJob.java

    r95366c0 r409207e0  
    208208        public long getExpiration() { return _expiration; }
    209209        public boolean isMatch(I2NPMessage message) {
    210             if (message instanceof DeliveryStatusMessage) {
     210            if (message.getType() == DeliveryStatusMessage.MESSAGE_TYPE) {
    211211                DeliveryStatusMessage msg = (DeliveryStatusMessage)message;
    212212                if (_nonce == msg.getMessageId()) {
  • router/java/src/net/i2p/router/tunnel/pool/TestJob.java

    r95366c0 r409207e0  
    268268
    269269        public boolean isMatch(I2NPMessage message) {
    270             if (message instanceof DeliveryStatusMessage) {
     270            if (message.getType() == DeliveryStatusMessage.MESSAGE_TYPE) {
    271271                return ((DeliveryStatusMessage)message).getMessageId() == _id;
    272272            }
Note: See TracChangeset for help on using the changeset viewer.