Changeset 552f91b


Ignore:
Timestamp:
Jun 28, 2013 12:40:09 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f8648ff
Parents:
726eb58
Message:

dont start thread in constructor

Location:
apps/i2ptunnel/java/src/net/i2p/i2ptunnel
Files:
2 edited

Legend:

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

    r726eb58 r552f91b  
    288288        super.startRunning();
    289289        this.isr = new InternalSocketRunner(this);
     290        this.isr.start();
    290291        _context.portMapper().register(PortMapper.SVC_HTTP_PROXY, getLocalPort());
    291292    }
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/InternalSocketRunner.java

    r726eb58 r552f91b  
    1515 * @since 0.7.9
    1616 */
    17 class InternalSocketRunner implements Runnable {
     17class InternalSocketRunner extends I2PAppThread {
    1818    private final I2PTunnelClientBase client;
    1919    private final int port;
     
    2121    private volatile boolean open;
    2222
    23     /** starts the runner */
     23    /**
     24     * Does not start the runner, caller must call start()
     25     */
    2426    InternalSocketRunner(I2PTunnelClientBase client) {
     27        super("Internal socket port " + client.getLocalPort());
     28        setDaemon(true);
    2529        this.client = client;
    2630        this.port = client.getLocalPort();
    27         Thread t = new I2PAppThread(this, "Internal socket port " + this.port, true);
    28         t.start();
    2931    }
    3032   
     33    @Override
    3134    public final void run() {
    3235        try {
Note: See TracChangeset for help on using the changeset viewer.