From: José Bollo Date: Mon, 23 May 2016 07:27:21 +0000 (+0200) Subject: Fix DON'T ALWAYS CLOSE SESSION X-Git-Tag: blowfish_2.0.1~90 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=ad9cee7d6e86ba4497ffb09b4acb3b2c07b42a12;p=src%2Fapp-framework-binder.git Fix DON'T ALWAYS CLOSE SESSION Change-Id: I93439f9d111598d8917e7fb3eeb8434d29cf877a Signed-off-by: José Bollo --- diff --git a/src/afb-context.c b/src/afb-context.c index 48787f79..a7010dbb 100644 --- a/src/afb-context.c +++ b/src/afb-context.c @@ -74,7 +74,7 @@ void afb_context_disconnect(struct afb_context *context) ctxClientSetLOA (context->session, context->loa_out); context->loa_changed = 1; } - if (!context->closed) { + if (context->closing && !context->closed) { ctxClientClose(context->session); context->closed = 1; }