Ignore:
Timestamp:
Jun 13, 2006, 12:28:03 AM (15 years ago)
Author:
titer
Message:

Fixes #22 (all torrents apparently at 0 % when T restarts)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r310 r346  
    6262
    6363/***********************************************************************
     64 * tr_ioLoadResume
     65 ***********************************************************************
     66 * Try to load the fast resume file
     67 **********************************************************************/
     68void tr_ioLoadResume( tr_torrent_t * tor )
     69{
     70    tr_io_t * io;
     71    tr_info_t * inf = &tor->info;
     72
     73    io      = malloc( sizeof( tr_io_t ) );
     74    io->tor = tor;
     75
     76    io->pieceSlot = malloc( inf->pieceCount * sizeof( int ) );
     77    io->slotPiece = malloc( inf->pieceCount * sizeof( int ) );
     78
     79    fastResumeLoad( io );
     80
     81    free( io->pieceSlot );
     82    free( io->slotPiece );
     83    free( io );
     84}
     85
     86/***********************************************************************
    6487 * tr_ioInit
    6588 ***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.