Changeset 09cdc00


Ignore:
Timestamp:
Jun 4, 2015 10:34:13 PM (5 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
78e0a37
Parents:
2590e7d
Message:

i2ptunnel: Don't call startup() in chained constructor (ticket #1593)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelClientBase.java

    r2590e7d r09cdc00  
    9191
    9292    /**
    93      *  This constructor always starts the tunnel (ignoring the i2cp.delayOpen option).
    94      *  It is used to add a client to an existing socket manager.
     93     * This constructor is used to add a client to an existing socket manager.
     94     * <p/>
     95     * As of 0.9.21 this does NOT open the local socket. You MUST call
     96     * {@link #startRunning()} for that. The local socket will be opened
     97     * immediately (ignoring the <code>i2cp.delayOpen</code> option).
    9598     *
    9699     *  @param localPort if 0, use any port, get actual port selected with getLocalPort()
     
    114117        _context.statManager().createRateStat("i2ptunnel.client.buildRunTime", "How long it takes to run a queued socket into an i2ptunnel runner?", "I2PTunnel", new long[] { 60*1000, 10*60*1000, 60*60*1000 });
    115118        _log = _context.logManager().getLog(getClass());
    116 
    117         startup();
    118119    }
    119120
     
    524525        if (open && listenerReady) {
    525526            boolean openNow = !Boolean.parseBoolean(getTunnel().getClientOptions().getProperty("i2cp.delayOpen"));
    526             if (openNow)
     527            if (openNow || chained)
    527528                l.log("Client ready, listening on " + getTunnel().listenHost + ':' + localPort);
    528529            else
  • history.txt

    r2590e7d r09cdc00  
    22 * i2ptunnel:
    33   - Don't connect manager to router in constructor (ticket #815)
     4   - Don't call startup() in chained constructor (ticket #1593)
    45
    562015-06-03 zzz
Note: See TracChangeset for help on using the changeset viewer.