diff options
-rw-r--r-- | json-rpc-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c index 3e5f18d..0fbf1ae 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -2126,7 +2126,7 @@ backend_ws_connect (struct ws_context *self, struct error **e) result = true; fail_2: - if (!result) + if (!result && self->server_fd != -1) { xclose (self->server_fd); self->server_fd = -1; |