Changeset 1652


Ignore:
Timestamp:
Apr 3, 2007, 6:43:01 PM (15 years ago)
Author:
joshe
Message:

Don't return a NULL client string when not connected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer.c

    r1651 r1652  
    228228tr_peerClient( tr_peer_t * peer )
    229229{
    230     if( NULL == peer->client && PEER_STATUS_HANDSHAKE < peer->status )
     230    if( PEER_STATUS_HANDSHAKE < peer->status )
     231    {
     232        return "not connected";
     233    }
     234
     235    if( NULL == peer->client )
    231236    {
    232237        peer->client = tr_clientForId( peer->id );
Note: See TracChangeset for help on using the changeset viewer.