Ignore:
Timestamp:
Aug 13, 2009, 2:47:56 PM (13 years ago)
Author:
charles
Message:

(trunk libT) fix #2162: .resume file doesn't get saved often enough when its contents change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r8898 r8910  
    13551355}
    13561356
     1357void
     1358tr_torrentSave( tr_torrent * tor )
     1359{
     1360    assert( tr_isTorrent( tor ) );
     1361
     1362    if( tor->isDirty ) {
     1363        tor->isDirty = FALSE;
     1364        tr_torrentSaveResume( tor );
     1365    }
     1366}
     1367
    13571368static void
    13581369stopTorrent( void * vtor )
     
    13681379    tr_fdTorrentClose( tor->uniqueId );
    13691380
    1370     if( tor->isDirty ) {
    1371         tor->isDirty = 0;
    1372         if( !tor->isDeleting )
    1373             tr_torrentSaveResume( tor );
    1374     }
     1381    if( !tor->isDeleting )
     1382        tr_torrentSave( tor );
    13751383}
    13761384
Note: See TracChangeset for help on using the changeset viewer.