diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-08-15 22:39:55 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-08-15 22:39:55 +0400 |
commit | 8406ea98f48b7e7c4c6f2067af768e5994fe70ca (patch) | |
tree | 64af1d9bae04f7f90dbd33cd289167e7a7925f34 /accel-pppd/triton | |
parent | 7b6848214631dca37444fe3ed53d152b2584564f (diff) | |
download | accel-ppp-8406ea98f48b7e7c4c6f2067af768e5994fe70ca.tar.gz accel-ppp-8406ea98f48b7e7c4c6f2067af768e5994fe70ca.zip |
triton: do not call context close if it is marked as need free (f.e. context already called triton_context_unregister)
Diffstat (limited to 'accel-pppd/triton')
-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); |