kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 884d6d722e388c9427c1b563869d5d07b96a1931
parent 19044919b2386d28010f0a4118f57bfd7f80c71c
Author: Joris Vink <joris@coders.se>
Date:   Sun,  7 Oct 2018 21:25:00 +0200

add listener to the list earlier.

Diffstat:
src/kore.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/kore.c b/src/kore.c @@ -383,6 +383,9 @@ kore_listener_alloc(int family, const char *ccb) l = kore_calloc(1, sizeof(struct listener)); + nlisteners++; + LIST_INSERT_HEAD(&listeners, l, list); + l->fd = -1; l->family = family; l->type = KORE_TYPE_LISTENER; @@ -414,9 +417,6 @@ kore_listener_alloc(int family, const char *ccb) l->connect = NULL; } - nlisteners++; - LIST_INSERT_HEAD(&listeners, l, list); - return (l); }