From 9531f2b5184e12cdea95b356c842b9b19fbc80fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Mon, 6 Feb 2017 21:23:41 +0100 Subject: [PATCH] WebSocket: fix connection timeout --- json-rpc-shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/json-rpc-shell.c b/json-rpc-shell.c index 0fbf1ae..5b9e1ed 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -2107,6 +2107,7 @@ backend_ws_connect (struct ws_context *self, struct error **e) // As it is, this isn't really too useful. ev_timer_init (&self->timeout_watcher, backend_ws_on_connection_timeout, 30, 0); + self->timeout_watcher.data = self; // Run an event loop to process the handshake ev_timer_start (EV_DEFAULT_ &self->timeout_watcher);