Changeset 11931


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

Fix peerIoReconnect for uTP sockets.

File:
1 edited

Legend:

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

    r11930 r11931  
    861861        tr_netClose( session, io->socket );
    862862        io->socket = -1;
     863        event_free( io->event_read );
     864        event_free( io->event_write );
    863865    }
    864866    if( io->utp_socket != NULL ) {
     
    870872    }
    871873
    872     event_free( io->event_read );
    873     event_free( io->event_write );
    874874    io->socket = tr_netOpenPeerSocket( session, &io->addr, io->port, io->isSeed );
    875875    io->event_read = event_new( session->event_base, io->socket, EV_READ, event_read_cb, io );
Note: See TracChangeset for help on using the changeset viewer.