Changeset a0bf2230


Ignore:
Timestamp:
Jun 29, 2013 8:34:57 PM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
937404b
Parents:
6b15caa
Message:

return the Thread object for join()-ing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/test/junit/net/i2p/client/streaming/StreamingTestBase.java

    r6b15caa ra0bf2230  
    3030    protected abstract Runnable getClient(I2PAppContext ctx, I2PSession session);
    3131   
    32     protected final void runClient(I2PAppContext ctx, I2PSession session) {
     32    protected final Thread runClient(I2PAppContext ctx, I2PSession session) {
    3333        Thread t = new Thread(getClient(ctx,session));
    3434        t.setName("client");
    3535        t.setDaemon(true);
    3636        t.start();
     37        return t;
    3738    }
    3839   
     
    5253    protected abstract Runnable getServer(I2PAppContext ctx, I2PSession session);
    5354   
    54     protected final void runServer(I2PAppContext ctx, I2PSession session) {
     55    protected final Thread runServer(I2PAppContext ctx, I2PSession session) {
    5556        Thread t = new Thread(getServer(ctx,session));
    5657        t.setName("servert");
    5758        t.setDaemon(false);
    5859        t.start();
     60        return t;
    5961    }
    6062}
Note: See TracChangeset for help on using the changeset viewer.