summaryrefslogtreecommitdiffstats
path: root/vpp-api/java
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-12-07 08:37:25 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-07 17:20:02 +0000
commit38bcb56e99774c209e5f61604a4c22839c097e04 (patch)
tree0b1657c6f9445b58610360a20babd96e43f0b403 /vpp-api/java
parent19c68d2a02770189d32ead3ff964efc073db630a (diff)
Make jvpp connection fail if control ping fails
Change-Id: Ib57cf97514fb6831f41930d9492e92ad11a3730d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'vpp-api/java')
-rw-r--r--vpp-api/java/jvpp-registry/jvpp_registry.c4
1 files changed, 1 insertions, 3 deletions
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(