summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);