1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

(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

View file

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