瀏覽代碼

Set its rates to zero when stopping a torrent.

master
Richard Nyberg 18 年之前
父節點
當前提交
1b3c4e7c05
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      btpd/net.c

+ 2
- 0
btpd/net.c 查看文件

@@ -94,6 +94,8 @@ net_stop(struct torrent *tp)
BTPDQ_REMOVE(&m_torrents, n, entry); BTPDQ_REMOVE(&m_torrents, n, entry);


n->active = 0; n->active = 0;
n->rate_up = 0;
n->rate_dwn = 0;


ul_on_lost_torrent(n); ul_on_lost_torrent(n);




Loading…
取消
儲存