From 1b3c4e7c053704a2cb5e0271fc87c251d0541bee Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Sun, 12 Feb 2006 19:40:04 +0000 Subject: Set its rates to zero when stopping a torrent. --- btpd/net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/btpd/net.c b/btpd/net.c index ba59943..a1eac6b 100644 --- a/btpd/net.c +++ b/btpd/net.c @@ -94,6 +94,8 @@ net_stop(struct torrent *tp) BTPDQ_REMOVE(&m_torrents, n, entry); n->active = 0; + n->rate_up = 0; + n->rate_dwn = 0; ul_on_lost_torrent(n); -- cgit 1.4.1