From 78fddd57db45fdbed7657e13daf32f6c810608f0 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Wed, 20 Jul 2005 21:42:22 +0000 Subject: 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. --- btpd/policy_if.c | 1 + 1 file changed, 1 insertion(+) diff --git a/btpd/policy_if.c b/btpd/policy_if.c index dbd17e9..5f6804c 100644 --- a/btpd/policy_if.c +++ b/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); -- cgit 1.4.1