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:
parent
dc6da4139d
commit
3c97a10a3e
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue