Ignore:
Timestamp:
Jan 13, 2011, 1:58:57 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) #3894 "tr_peerIo.hasFinishedConnecting should be removed" -- committed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11599 r11669  
    215215    assert( tr_isPeerIo( io ) );
    216216
    217     io->hasFinishedConnecting = TRUE;
    218217    io->pendingEvents &= ~EV_READ;
    219218
     
    291290    assert( tr_isPeerIo( io ) );
    292291
    293     io->hasFinishedConnecting = TRUE;
    294292    io->pendingEvents &= ~EV_WRITE;
    295293
     
    391389    io->socket = socket;
    392390    io->isIncoming = isIncoming != 0;
    393     io->hasFinishedConnecting = FALSE;
    394391    io->timeCreated = tr_time( );
    395392    io->inbuf = evbuffer_new( );
     
    968965    assert( tr_isDirection( dir ) );
    969966
    970     if( io->hasFinishedConnecting )
    971     {
    972         if( dir == TR_DOWN )
    973             bytesUsed = tr_peerIoTryRead( io, limit );
    974         else
    975             bytesUsed = tr_peerIoTryWrite( io, limit );
    976     }
    977 
    978     dbgmsg( io, "flushing peer-io, hasFinishedConnecting %d, direction %d, limit %zu, bytesUsed %d", (int)io->hasFinishedConnecting, (int)dir, limit, bytesUsed );
     967    if( dir == TR_DOWN )
     968        bytesUsed = tr_peerIoTryRead( io, limit );
     969    else
     970        bytesUsed = tr_peerIoTryWrite( io, limit );
     971
     972    dbgmsg( io, "flushing peer-io, direction %d, limit %zu, bytesUsed %d", (int)dir, limit, bytesUsed );
    979973    return bytesUsed;
    980974}
Note: See TracChangeset for help on using the changeset viewer.