diff options
-rw-r--r-- | src/afb-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |