From 3c97a10a3e37a00a8b76e9cb53237d78331acec1 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 19 Apr 2009 16:21:27 +0000 Subject: [PATCH] (trunk libT) add an assertion to tr_torrentStop() --- libtransmission/torrent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 430b17c84..339f9cc54 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 );