From 399c3233b7884063515d6a1ac16257879a308f65 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 12 Dec 2012 20:57:13 +0000 Subject: [PATCH] remove a couple of unnecessary torrentIsLocked() assertions for #5168 --- libtransmission/announcer.c | 1 - libtransmission/peer-mgr.c | 1 - 2 files changed, 2 deletions(-) diff --git a/libtransmission/announcer.c b/libtransmission/announcer.c index 34d071f52..9c809f2da 100644 --- a/libtransmission/announcer.c +++ b/libtransmission/announcer.c @@ -1585,7 +1585,6 @@ tr_announcerStats (const tr_torrent * torrent, int * setmeTrackerCount) const time_t now = tr_time (); assert (tr_isTorrent (torrent)); - assert (tr_torrentIsLocked (torrent)); tt = torrent->tiers; diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 1a05731ec..84e9e5849 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -359,7 +359,6 @@ getExistingAtom (const Torrent * t, const tr_address * addr) { Torrent * tt = (Torrent*)t; - assert (torrentIsLocked (t)); return tr_ptrArrayFindSorted (&tt->pool, addr, comparePeerAtomToAddress); }