This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
btpd
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Move increment of btpd.npeers to a more fitting location.
master
Richard Nyberg
19 years ago
parent
36ea68a4b2
commit
27ba618c5e
2 changed files
with
1 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-2
btpd/net.c
+1
-0
btpd/peer.c
+ 0
- 2
btpd/net.c
View File
@@ -933,7 +933,6 @@ net_connect2(struct sockaddr *sa, socklen_t salen, int *sd)
return errno;
return errno;
}
}
btpd.npeers++;
return 0;
return 0;
}
}
@@ -983,7 +982,6 @@ net_connection_cb(int sd, short type, void *arg)
return;
return;
}
}
btpd.npeers++;
peer_create_in(nsd);
peer_create_in(nsd);
btpd_log(BTPD_L_CONN, "got connection.\n");
btpd_log(BTPD_L_CONN, "got connection.\n");
+ 1
- 0
btpd/peer.c
View File
@@ -151,6 +151,7 @@ peer_create_common(int sd)
event_set(&p->in_ev, p->sd, EV_READ, net_read_cb, p);
event_set(&p->in_ev, p->sd, EV_READ, net_read_cb, p);
event_add(&p->in_ev, NULL);
event_add(&p->in_ev, NULL);
btpd.npeers++;
return p;
return p;
}
}
Write
Preview
Loading…
Cancel
Save