Java: fixing typo in context initialization.

This commit is contained in:
Max Romanov
2019-05-30 15:02:09 +03:00
parent 6a2928b4bf
commit 8241539734

View File

@@ -55,7 +55,7 @@ nxt_java_initContext(JNIEnv *env, jobject cl)
} }
nxt_java_Context_stop = (*env)->GetMethodID(env, cls, "stop", "()V"); 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"); nxt_unit_warn(NULL, "nginx.unit.Context.stop() not found");
goto failed; goto failed;
} }