From 8d1d91499ace395d2d51a9fecc7e7d65b0a82e5c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 21 Oct 2009 02:45:49 +0000 Subject: [PATCH] (trunk libT) #2520: tor->isRunning is not always saved to .resume file --- libtransmission/torrent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 8e2c9ae03..41eb0f8a7 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1341,6 +1341,7 @@ torrentStart( tr_torrent * tor ) tor->peer_id = tr_peerIdNew( ); tor->isRunning = 1; + tr_torrentSetDirty( tor ); tor->preVerifyTotal = tr_cpHaveTotal( &tor->completion ); tr_verifyAdd( tor, checkAndStartCB ); } @@ -1454,6 +1455,7 @@ tr_torrentStop( tr_torrent * tor ) tr_globalLock( tor->session ); tor->isRunning = 0; + tr_torrentSetDirty( tor ); tr_runInEventThread( tor->session, stopTorrent, tor ); tr_globalUnlock( tor->session );