call close() from the Node class's finalize method

Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
Grant Limberg 2015-04-20 20:35:46 -07:00
parent bd4049fdc0
commit e0c8ddb65b

View File

@ -84,6 +84,11 @@ public class Node {
}
}
@Override
protected void finalize() {
close();
}
private native ResultCode processVirtualNetworkFrame(
long nodeId,
long now,