Преглед изворни кода

Move increment of btpd.npeers to a more fitting location.

master
Richard Nyberg пре 19 година
родитељ
комит
27ba618c5e
2 измењених фајлова са 1 додато и 2 уклоњено
  1. +0
    -2
      btpd/net.c
  2. +1
    -0
      btpd/peer.c

+ 0
- 2
btpd/net.c Прегледај датотеку

@@ -933,7 +933,6 @@ net_connect2(struct sockaddr *sa, socklen_t salen, int *sd)
return errno;
}

btpd.npeers++;
return 0;
}

@@ -983,7 +982,6 @@ net_connection_cb(int sd, short type, void *arg)
return;
}

btpd.npeers++;
peer_create_in(nsd);

btpd_log(BTPD_L_CONN, "got connection.\n");


+ 1
- 0
btpd/peer.c Прегледај датотеку

@@ -151,6 +151,7 @@ peer_create_common(int sd)
event_set(&p->in_ev, p->sd, EV_READ, net_read_cb, p);
event_add(&p->in_ev, NULL);

btpd.npeers++;
return p;
}



Loading…
Откажи
Сачувај