Ignore:
Timestamp:
Nov 24, 2009, 5:10:40 PM (13 years ago)
Author:
charles
Message:

(trunk) more magnet fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9550 r9556  
    4141#include "session.h"
    4242#include "torrent.h"
     43#include "torrent-magnet.h"
    4344#include "trevent.h"
    4445#include "utils.h"
     
    960961
    961962    s->percentComplete = tr_cpPercentComplete ( &tor->completion );
     963    s->metadataPercentComplete = tr_torrentGetMetadataPercent( tor );
    962964
    963965    s->percentDone   = tr_cpPercentDone  ( &tor->completion );
     
    14691471    assert( tr_isTorrent( tor ) );
    14701472
    1471     if( tor->isDirty ) {
     1473    if( tor->isDirty && tr_torrentHasMetadata( tor ) )
     1474    {
    14721475        tor->isDirty = FALSE;
    14731476        tr_torrentSaveResume( tor );
Note: See TracChangeset for help on using the changeset viewer.