json input support, some shutdown fixes. json needs cleanup.

This commit is contained in:
Ian Gulliver
2016-02-23 13:49:23 -08:00
parent 07d273236d
commit d2e521e90c
14 changed files with 212 additions and 23 deletions

View File

@@ -68,7 +68,9 @@ static void incoming_handler(struct peer *peer) {
}
static void incoming_del(struct incoming *incoming) {
assert(!close(incoming->peer.fd));
if (incoming->peer.fd >= 0) {
assert(!close(incoming->peer.fd));
}
free(incoming->node);
free(incoming->service);
free(incoming);