Pārlūkot izejas kodu

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 pirms 20 gadiem
vecāks
revīzija
78fddd57db
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      btpd/policy_if.c

+ 1
- 0
btpd/policy_if.c Parādīt failu

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


||||||
x
 
000:0
Notiek ielāde…
Atcelt
Saglabāt