have tr_close() call tr_torrentClose() on all running torrents

This commit is contained in:
Charles Kerr 2007-11-10 22:29:28 +00:00
parent 5cfd290769
commit 0aee22aaff
1 changed files with 5 additions and 0 deletions

View File

@ -295,6 +295,11 @@ static void
tr_closeImpl( void * vh )
{
tr_handle * h = vh;
tr_torrent * t;
for( t=h->torrentList; t!=NULL; t=t->next )
tr_torrentClose( t );
tr_peerMgrFree( h->peerMgr );
tr_rcClose( h->upload );