(trunk libT) add an assertion to tr_torrentStop()

This commit is contained in:
Charles Kerr 2009-04-19 16:21:27 +00:00
parent dc6da4139d
commit 3c97a10a3e
1 changed files with 2 additions and 0 deletions

View File

@ -1334,6 +1334,8 @@ stopTorrent( void * vtor )
void
tr_torrentStop( tr_torrent * tor )
{
assert( tr_isTorrent( tor ) );
if( tr_isTorrent( tor ) )
{
tr_globalLock( tor->session );