Browse Source

Set its rates to zero when stopping a torrent.

master
Richard Nyberg 18 years ago
parent
commit
1b3c4e7c05
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      btpd/net.c

+ 2
- 0
btpd/net.c View File

@@ -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);



Loading…
Cancel
Save