Max Lv 11 years ago
parent
commit
03646d116b
1 changed files with 2 additions and 2 deletions
  1. 4
      src/android.cpp

4
src/android.cpp

@ -62,7 +62,7 @@ jint new_protected_socket()
if (newProtectedSocketMethod != NULL) if (newProtectedSocketMethod != NULL)
{ {
JNIEnv* env = uenv.env; JNIEnv* env = uenv.env;
return (*env)->CallStaticIntMethod(env, SocketCls, newProtectedSocketMethod);
return env->CallStaticIntMethod(clazz, newProtectedSocketMethod);
} }
return -1; return -1;
} }
@ -72,7 +72,7 @@ void free_protected_socket(jint fd)
if (newProtectedSocketMethod != NULL) if (newProtectedSocketMethod != NULL)
{ {
JNIEnv* env = uenv.env; JNIEnv* env = uenv.env;
(*env)->CallStaticVoidMethod(env, SocketCls, freeProtectedSocketMethod, fd);
env->CallStaticVoidMethod(clazz, freeProtectedSocketMethod, fd);
} }
} }

Loading…
Cancel
Save