summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_thread.c')
-rw-r--r--src/nxt_thread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nxt_thread.c b/src/nxt_thread.c
index 415253c0..680412c2 100644
--- a/src/nxt_thread.c
+++ b/src/nxt_thread.c
@@ -184,8 +184,9 @@ nxt_thread_exit(nxt_thread_t *thr)
if (thr->link != NULL) {
nxt_event_engine_post(thr->link->engine, thr->link->exit,
- (void *) (uintptr_t) thr->handle, NULL,
- &nxt_main_log);
+ &thr->link->engine->task,
+ (void *) (uintptr_t) thr->handle,
+ NULL, &nxt_main_log);
nxt_free(thr->link);
thr->link = NULL;