diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2021-09-24 18:59:33 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2021-09-24 18:59:33 +0300 |
commit | 3b01433a2e00a3489fc2a746078d79530a450015 (patch) | |
tree | 661f9496b2ea57cdf61f03cb75e82aaf600c42f3 /accel-pppd | |
parent | faf7d93f34f588e0a8b1f1acc9ab421702831dc4 (diff) | |
download | accel-ppp-3b01433a2e00a3489fc2a746078d79530a450015.tar.gz accel-ppp-3b01433a2e00a3489fc2a746078d79530a450015.zip |
triton: do not queue context in init state
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/triton/triton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/triton/triton.c b/accel-pppd/triton/triton.c index a8819109..395a42df 100644 --- a/accel-pppd/triton/triton.c +++ b/accel-pppd/triton/triton.c @@ -330,12 +330,12 @@ int triton_queue_ctx(struct _triton_context_t *ctx) { spin_lock(&threads_lock); ctx->pending = 1; - if (ctx->thread || ctx->entry2.next || ctx->need_free) { + if (ctx->thread || ctx->entry2.next || ctx->need_free || ctx->init) { spin_unlock(&threads_lock); return 0; } - if (list_empty(&sleep_threads) || ctx->init || need_config_reload) { + if (list_empty(&sleep_threads) || need_config_reload) { list_add_tail(&ctx->entry2, &ctx_queue[ctx->priority]); spin_unlock(&threads_lock); ctx->queued = 1; |