Don't respond to notifications

This commit is contained in:
Přemysl Eric Janouch 2017-02-06 20:48:14 +01:00
parent d35e733c6e
commit b85d1d74a4
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 3 additions and 2 deletions

View File

@ -2149,8 +2149,9 @@ client_ws_on_message (void *user_data,
struct str response;
str_init (&response);
process_json_rpc (self->client.ctx, data, len, &response);
ws_handler_send (&self->handler,
WS_OPCODE_TEXT, response.str, response.len);
if (response.len)
ws_handler_send (&self->handler,
WS_OPCODE_TEXT, response.str, response.len);
str_free (&response);
return true;
}