浏览代码

Peers wasn't removed from the list of unattached peers before being

added to the torrent list. This bug crept in because this file was
based on an earlier version of policy.c.
master
Richard Nyberg 19 年前
父节点
当前提交
78fddd57db
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      btpd/policy_if.c

+ 1
- 0
btpd/policy_if.c 查看文件

@@ -178,6 +178,7 @@ cm_on_new_peer(struct peer *p)

tp->npeers++;
p->flags |= PF_ATTACHED;
BTPDQ_REMOVE(&btpd.unattached, p, cm_entry);

if (tp->npeers == 1) {
BTPDQ_INSERT_HEAD(&tp->peers, p, cm_entry);


正在加载...
取消
保存