Changeset f170baab


Ignore:
Timestamp:
Oct 30, 2010 3:30:14 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
30a5c49
Parents:
6436874
Message:
  • Delay during StopAll? so we don't close the tunnel before the stopped announces go out and reopen it
  • Logging tweaks
Location:
apps/i2psnark/java/src/org/klomp/snark
Files:
3 edited

Legend:

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

    r6436874 rf170baab  
    153153    synchronized public boolean connect() {
    154154        if (_manager == null) {
     155            // try to find why reconnecting after stop
     156            if (_log.shouldLog(Log.DEBUG))
     157                _log.debug("Connecting to I2P", new Exception("I did it"));
    155158            Properties opts = new Properties();
    156159            if (_opts != null) {
  • apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java

    r6436874 rf170baab  
    269269                        Collections.shuffle(ordered, r);
    270270                        Iterator it = ordered.iterator();
    271                         while (it.hasNext()) {
     271                        while ((!stop) && it.hasNext()) {
    272272                          Peer cur = (Peer)it.next();
    273273                          // FIXME if id == us || dest == us continue;
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r6436874 rf170baab  
    531531            }
    532532            if (_manager.util().connected()) {
     533                // Give the stopped announces time to get out
     534                try { Thread.sleep(2000); } catch (InterruptedException ie) {}
    533535                _manager.util().disconnect();
    534536                _manager.addMessage(_("I2P tunnel closed."));
Note: See TracChangeset for help on using the changeset viewer.