ANDROID-96: Simplify and use return code from node_init directly
This commit is contained in:
parent
d4e63fcdfe
commit
826a1ee346
2 changed files with 2 additions and 43 deletions
|
@ -75,8 +75,8 @@ public class Node {
|
|||
EventListener eventListener,
|
||||
VirtualNetworkFrameListener frameListener,
|
||||
VirtualNetworkConfigListener configListener,
|
||||
PathChecker pathChecker) throws NodeException {
|
||||
ResultCode rc = node_init(
|
||||
PathChecker pathChecker) {
|
||||
return node_init(
|
||||
nodeId,
|
||||
getListener,
|
||||
putListener,
|
||||
|
@ -85,10 +85,6 @@ public class Node {
|
|||
frameListener,
|
||||
configListener,
|
||||
pathChecker);
|
||||
if(rc != ResultCode.RESULT_OK) {
|
||||
throw new NodeException(rc.toString());
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
public boolean isInited() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue