From 38bcb56e99774c209e5f61604a4c22839c097e04 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Wed, 7 Dec 2016 08:37:25 +0100 Subject: Make jvpp connection fail if control ping fails Change-Id: Ib57cf97514fb6831f41930d9492e92ad11a3730d Signed-off-by: Marek Gradzki --- vpp-api/java/jvpp-registry/jvpp_registry.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vpp-api/java/jvpp-registry') diff --git a/vpp-api/java/jvpp-registry/jvpp_registry.c b/vpp-api/java/jvpp-registry/jvpp_registry.c index 5d2326a0aa3..f7f5561910a 100644 --- a/vpp-api/java/jvpp-registry/jvpp_registry.c +++ b/vpp-api/java/jvpp-registry/jvpp_registry.c @@ -216,9 +216,7 @@ static int connect_to_vpe(char *name) { vl_api_control_ping_reply_t_print, sizeof(vl_api_control_ping_reply_t), 1); - send_initial_control_ping(); - - return 0; + return send_initial_control_ping(); } JNIEXPORT jobject JNICALL Java_io_fd_vpp_jvpp_VppJNIConnection_clientConnect( -- cgit 1.2.3-korg