diff options
| author | Přemysl Janouch <p.janouch@gmail.com> | 2017-02-06 21:23:41 +0100 | 
|---|---|---|
| committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-02-06 21:28:40 +0100 | 
| commit | 9531f2b5184e12cdea95b356c842b9b19fbc80fb (patch) | |
| tree | 5d3e33f39421076b2aa7481ad511cdb745416312 | |
| parent | 06e066a49127115b6396b60b52ecd9127baf069d (diff) | |
| download | json-rpc-shell-9531f2b5184e12cdea95b356c842b9b19fbc80fb.tar.gz json-rpc-shell-9531f2b5184e12cdea95b356c842b9b19fbc80fb.tar.xz json-rpc-shell-9531f2b5184e12cdea95b356c842b9b19fbc80fb.zip | |
WebSocket: fix connection timeout
| -rw-r--r-- | json-rpc-shell.c | 1 | 
1 files changed, 1 insertions, 0 deletions
| 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); | 
