when closing torrents, don't try to re-stop torrents that are already stopped.

This commit is contained in:
Charles Kerr 2007-07-21 18:03:24 +00:00
parent 1d932b07c7
commit 50f407933b
1 changed files with 2 additions and 1 deletions

View File

@ -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 )