[Desc.] profile as
[Issue] -
} catch (IOException e) {
e.printStackTrace();
}
+
if (fileLock == null) {
isActiveDA = true;
} else {
isActiveDA = false;
- if (null != fileLock) {
- try {
- fileLock.close();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ try {
+ if (null != fileLock) {
+ fileLock.release();
+ }
+ if (null != fchannel) {
+ fchannel.close();
}
+
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
}
+
+
}
return isActiveDA;