projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e25b34d
)
Fix unsafe client removal from list at timeout.
author
Martin Johansson
<martin@fatbob.nu>
Wed, 29 Aug 2012 19:13:51 +0000
(21:13 +0200)
committer
Martin Johansson
<martin@fatbob.nu>
Wed, 29 Aug 2012 19:13:51 +0000
(21:13 +0200)
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index a81badf83c9a04e364f4c701bb82c8e61856143c..9f7576eff20051feb3d96ca36fa53ae8c19799c2 100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-91,9
+91,9
@@
int Client_getfds(struct pollfd *pollfds)
void Client_janitor()
{
- struct dlist *itr;
+ struct dlist *itr
, *save
;
int bwTop = maxBandwidth + maxBandwidth / 4;
- list_iterate
(itr
, &clients) {
+ list_iterate
_safe(itr, save
, &clients) {
client_t *c;
c = list_get_entry(itr, client_t, node);
Log_debug("Client %s BW available %d", c->username, c->availableBandwidth);