summaryrefslogtreecommitdiffhomepage
path: root/src/java
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2019-05-30 15:02:09 +0300
committerMax Romanov <max.romanov@nginx.com>2019-05-30 15:02:09 +0300
commit82415397346b7d8953b094f6dce867c1afdde420 (patch)
treea88ac77b2f93dab410a0c62875fea79aaf21099c /src/java
parent6a2928b4bf3c57685b707c17eb0c147d68be1dd6 (diff)
downloadunit-82415397346b7d8953b094f6dce867c1afdde420.tar.gz
unit-82415397346b7d8953b094f6dce867c1afdde420.tar.bz2
Java: fixing typo in context initialization.
Diffstat (limited to '')
-rw-r--r--src/java/nxt_jni_Context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/nxt_jni_Context.c b/src/java/nxt_jni_Context.c
index 8f7adddf..589e1c5b 100644
--- a/src/java/nxt_jni_Context.c
+++ b/src/java/nxt_jni_Context.c
@@ -55,7 +55,7 @@ nxt_java_initContext(JNIEnv *env, jobject cl)
}
nxt_java_Context_stop = (*env)->GetMethodID(env, cls, "stop", "()V");
- if (nxt_java_Context_service == NULL) {
+ if (nxt_java_Context_stop == NULL) {
nxt_unit_warn(NULL, "nginx.unit.Context.stop() not found");
goto failed;
}