summaryrefslogtreecommitdiff
path: root/json-rpc-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-rpc-shell.c')
-rw-r--r--json-rpc-shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index 9b5c4f7..3e5f18d 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -2042,6 +2042,8 @@ backend_ws_connect (struct ws_context *self, struct error **e)
self->url.field_data[UF_QUERY].len);
}
+ // TODO: I guess we should also reset it on error
+ self->state = WS_HANDLER_CONNECTING;
if (!backend_ws_establish_connection (self, url_host, url_port, e))
goto fail_1;