summaryrefslogtreecommitdiff
path: root/demo-json-rpc-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'demo-json-rpc-server.c')
-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 11ebfdf..47622ba 100644
--- a/demo-json-rpc-server.c
+++ b/demo-json-rpc-server.c
@@ -1877,6 +1877,7 @@ client_init (EV_P_ struct client *self, int sock_fd)
struct server_context *ctx = ev_userdata (loop);
memset (self, 0, sizeof *self);
+ self->ctx = ctx;
write_queue_init (&self->write_queue);
set_blocking (sock_fd, false);