X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=src%2Fafb-stub-ws.c;h=c7b4b2ecf736d242e3ce7465cd85f69d6d8a72ee;hb=524ce4c40da3b25630dffdd80c5aca99364a3569;hp=042ed252b8d8d608bb7970668f383cb97f26e30e;hpb=69d7968b9713dafa23268ee34516e50133ca8b36;p=src%2Fapp-framework-binder.git diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c index 042ed252..c7b4b2ec 100644 --- a/src/afb-stub-ws.c +++ b/src/afb-stub-ws.c @@ -354,7 +354,7 @@ static void server_req_subcall_cb(struct afb_xreq *xreq, const char *api, const sc = malloc(sizeof *sc); if (!sc) { - + callback(cb_closure, 1, afb_msg_json_internal_error()); } else { sc->callback = callback; sc->closure = cb_closure; @@ -1156,15 +1156,3 @@ void afb_stub_ws_addref(struct afb_stub_ws *stubws) __atomic_add_fetch(&stubws->refcount, 1, __ATOMIC_RELAXED); } -/* -static void client_disconnect(struct afb_stub_ws *stubws) -{ - if (stubws->fd >= 0) { - afb_ws_destroy(stubws->ws); - stubws->ws = NULL; - close(stubws->fd); - stubws->fd = -1; - } -} -*/ -