This commit is contained in:
Grant Limberg 2015-07-01 18:13:39 -07:00
parent d853dbf2d8
commit f803dd5ff4
3 changed files with 9 additions and 1 deletions

View file

@ -192,7 +192,11 @@ namespace {
{
LOGV("EventCallback");
JniRef *ref = (JniRef*)userData;
assert(ref->node == node);
if(ref->node != node)
{
LOGE("Nodes not equal. ref->node %p, node %p", ref->node, node);
return;
}
JNIEnv *env = NULL;
ref->jvm->GetEnv((void**)&env, JNI_VERSION_1_6);
@ -613,6 +617,8 @@ JNIEXPORT jobject JNICALL Java_com_zerotier_sdk_Node_node_1init(
&VirtualNetworkConfigFunctionCallback,
&EventCallback);
LOGI("Node Created.");
if(rc != ZT1_RESULT_OK)
{
LOGE("Error creating Node: %d", rc);