(trunk libT) add an assertion to tr_torrentStop()
This commit is contained in:
parent
dc6da4139d
commit
3c97a10a3e
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue