aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-06-20 14:01:23 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-06-20 14:01:23 +0200
commitca90e9df83409ccbc3a7d79295718e3572352c36 (patch)
tree58c3099b7ce0a81562d39210fd43ca06e2f77ba9
parent419147beecc8bd9e62aa370422ef8808f67d42f1 (diff)
downloadjson-rpc-shell-ca90e9df83409ccbc3a7d79295718e3572352c36.tar.gz
json-rpc-shell-ca90e9df83409ccbc3a7d79295718e3572352c36.tar.xz
json-rpc-shell-ca90e9df83409ccbc3a7d79295718e3572352c36.zip
Fix teardown
-rw-r--r--demo-json-rpc-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demo-json-rpc-server.c b/demo-json-rpc-server.c
index 85b54a9..c8ce29d 100644
--- a/demo-json-rpc-server.c
+++ b/demo-json-rpc-server.c
@@ -2387,6 +2387,7 @@ listener_add (struct server_context *ctx, const char *host, const char *port,
ev_io_start (EV_DEFAULT_ &listener->watcher);
listener->watcher.data = listener;
listener->create = create;
+ listener->fd = fd;
break;
}
freeaddrinfo (gai_result);