Changeset fe3abc7


Ignore:
Timestamp:
Oct 2, 2009 3:12:24 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9073749
Parents:
9931112
Message:

fix changing opentracker list

Location:
apps/i2psnark/java/src/org/klomp/snark
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/I2PSnarkUtil.java

    r9931112 rfe3abc7  
    335335    }
    336336   
     337    public void setOpenTrackerString(String ot) {
     338        _opts.put(PROP_OPENTRACKERS, ot);
     339    }
     340
    337341    public String getOpenTrackerString() {
    338342        String rv = (String) _opts.get(PROP_OPENTRACKERS);
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    r9931112 rfe3abc7  
    195195        _util.setMaxUploaders(getInt(PROP_UPLOADERS_TOTAL, Snark.MAX_TOTAL_UPLOADERS));
    196196        _util.setMaxUpBW(getInt(PROP_UPBW_MAX, DEFAULT_MAX_UP_BW));
     197        _util.setOpenTrackerString(_config.getProperty(I2PSnarkUtil.PROP_OPENTRACKERS));
    197198        getDataDir().mkdirs();
    198199    }
     
    346347            if (openTrackers.trim().length() > 0 && !openTrackers.trim().equals(_util.getOpenTrackerString())) {
    347348                _config.setProperty(I2PSnarkUtil.PROP_OPENTRACKERS, openTrackers.trim());
     349                _util.setOpenTrackerString(openTrackers);
    348350                addMessage("Open Tracker list changed - torrent restart required to take effect.");
    349351                changed = true;
Note: See TracChangeset for help on using the changeset viewer.