about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--btpd/net.c2
1 files changed, 2 insertions, 0 deletions
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);