X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fafb-stub-ws.c;h=740a8575f1a402acea50d6e771b9e6ecdf0d21cd;hb=bb5d6e408b08d82b89e0b1e91e05a0e4c0226c18;hp=d5355ff804595ee02b59021529868b98a7c1c7e5;hpb=9fcc6c5d9cb59065e57fa24a80a8912516c8c20c;p=src%2Fapp-framework-binder.git diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c index d5355ff8..740a8575 100644 --- a/src/afb-stub-ws.c +++ b/src/afb-stub-ws.c @@ -533,6 +533,8 @@ static void on_call(void *closure, struct afb_proto_ws_call *call, const char *v goto unconnected; wreq->xreq.context.validated = 1; record_session(stubws, wreq->xreq.context.session); + if (wreq->xreq.context.created) + afb_session_set_autoclose(wreq->xreq.context.session, 1); /* makes the call */ wreq->xreq.cred = afb_cred_addref(stubws->cred);