mirror of
https://github.com/transmission/transmission
synced 2025-02-05 22:12:11 +00:00
when closing torrents, don't try to re-stop torrents that are already stopped.
This commit is contained in:
parent
1d932b07c7
commit
50f407933b
1 changed files with 2 additions and 1 deletions
|
@ -931,7 +931,8 @@ void tr_torrentStart( tr_torrent_t * tor )
|
|||
|
||||
void tr_torrentStop( tr_torrent_t * tor )
|
||||
{
|
||||
setRunState( tor, TR_RUN_STOPPING );
|
||||
if((tor->runStatus != TR_RUN_STOPPING) && (tor->runStatus != TR_RUN_STOPPED) )
|
||||
setRunState( tor, TR_RUN_STOPPING );
|
||||
}
|
||||
|
||||
void tr_torrentClose( tr_torrent_t * tor )
|
||||
|
|
Loading…
Reference in a new issue