diff --git a/coreapi/linphonecore_jni.cc b/coreapi/linphonecore_jni.cc index d647b94c1..5e1699900 100644 --- a/coreapi/linphonecore_jni.cc +++ b/coreapi/linphonecore_jni.cc @@ -646,7 +646,7 @@ public: ,jevent ,jstate ); - if (state==LinphoneSubscriptionTerminated || state==LinphoneSubscriptionError){ + if (state==LinphoneSubscriptionTerminated){ /*loose the java reference */ linphone_event_set_user_data(ev,NULL); env->DeleteGlobalRef(jevent);