Changeset 11915


Ignore:
Timestamp:
Feb 18, 2011, 12:24:36 AM (11 years ago)
Author:
jch
Message:

Don't call UTP_Close multiple times.

Greg says it's evil.

File:
1 edited

Legend:

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

    r11913 r11915  
    377377    if( rc < 0 ) {
    378378        tr_nerr( "UTP", "On read evbuffer_add" );
    379         UTP_Close( io->utp_socket );
    380379        return;
    381380    }
     
    397396    if( rc < (long)buflen ) {
    398397        tr_nerr( "UTP", "Short write: %d < %ld", rc, (long)buflen);
    399         UTP_Close( io->utp_socket );
    400398    }
    401399}
Note: See TracChangeset for help on using the changeset viewer.