VPP-990 remove registered handler if control ping fails
[vpp.git] / src / vpp-api / java / jvpp-registry / jvpp_registry.c
index e8264cb..c90822d 100644 (file)
@@ -239,6 +239,7 @@ static int send_initial_control_ping() {
     }
 
     if (rv != 0) {
+        vl_msg_api_clean_handlers(rm->control_ping_reply_msg_id);
         clib_warning("first control ping failed: %d", rv);
     }
     return rv;