diff options
-rw-r--r-- | accel-pppd/triton/triton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/triton/triton.c b/accel-pppd/triton/triton.c index d4c21e2..8bde56d 100644 --- a/accel-pppd/triton/triton.c +++ b/accel-pppd/triton/triton.c @@ -230,7 +230,7 @@ static void ctx_thread(struct _triton_context_t *ctx) } spin_lock(&ctx->lock); - if (ctx->need_close) { + if (ctx->need_close && !ctx->need_free) { spin_unlock(&ctx->lock); if (ctx->ud->close) { ctx->ud->close(ctx->ud); |