Changeset 3fca0f6 for core


Ignore:
Timestamp:
Jan 27, 2019 4:13:05 PM (16 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8c9ce56
Parents:
3cd12ec
Message:

LS2: Honor unpublished flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/LeaseSet2.java

    r3cd12ec r3fca0f6  
    5959    public void setUnpublished() {
    6060        _flags |= FLAG_UNPUBLISHED;
     61    }
     62   
     63    /**
     64     * If true, we received this LeaseSet by a remote peer publishing it to
     65     * us, AND the unpublished flag is not set.
     66     * Default false.
     67     *
     68     *  @since 0.9.39 overridden
     69     */
     70    @Override
     71    public boolean getReceivedAsPublished() {
     72        return super.getReceivedAsPublished() && !isUnpublished();
    6173    }
    6274
Note: See TracChangeset for help on using the changeset viewer.