Add return value to destroyFace
diff --git a/src/main/java/com/intel/jndn/management/NFD.java b/src/main/java/com/intel/jndn/management/NFD.java
index 484a870..2578713 100644
--- a/src/main/java/com/intel/jndn/management/NFD.java
+++ b/src/main/java/com/intel/jndn/management/NFD.java
@@ -233,15 +233,16 @@
}
/**
- * Create a new face on the given forwarder. Ensure the forwarding face is on
+ * Destroy a face on given forwarder. Ensure the forwarding face is on
* the local machine (management requests are to /localhost/...) and that
* command signing has been set up (e.g. forwarder.setCommandSigningInfo()).
*
* @param forwarder Only a localhost Face
* @param faceId
+ * @return
* @throws java.lang.Exception
*/
- public static void destroyFace(Face forwarder, int faceId) throws Exception {
+ public static boolean destroyFace(Face forwarder, int faceId) throws Exception {
Name command = new Name("/localhost/nfd/faces/destroy");
ControlParameters parameters = new ControlParameters();
parameters.setFaceId(faceId);
@@ -255,7 +256,7 @@
throw new Exception("Failed to destroy face: " + String.valueOf(faceId) + " " + response.getStatusText());
}
- return;
+ return true;
}
/**