mirror of
https://github.com/transmission/transmission
synced 2025-02-23 14:40:43 +00:00
(trunk libT) fix pause-on-shutdown bug reported by KyleK and introduced in r8878 for #2317.
This commit is contained in:
parent
d597fbed28
commit
37a4a5c68e
1 changed files with 3 additions and 1 deletions
|
@ -1448,13 +1448,15 @@ closeTorrent( void * vtor )
|
||||||
tr_bencDictAddInt( d, "id", tor->uniqueId );
|
tr_bencDictAddInt( d, "id", tor->uniqueId );
|
||||||
tr_bencDictAddInt( d, "date", time( NULL ) );
|
tr_bencDictAddInt( d, "date", time( NULL ) );
|
||||||
|
|
||||||
tor->isRunning = 0;
|
|
||||||
stopTorrent( tor );
|
stopTorrent( tor );
|
||||||
|
|
||||||
if( tor->isDeleting )
|
if( tor->isDeleting )
|
||||||
{
|
{
|
||||||
tr_metainfoRemoveSaved( tor->session, &tor->info );
|
tr_metainfoRemoveSaved( tor->session, &tor->info );
|
||||||
tr_torrentRemoveResume( tor );
|
tr_torrentRemoveResume( tor );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tor->isRunning = 0;
|
||||||
freeTorrent( tor );
|
freeTorrent( tor );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue