[Title] active DA
authorHyunjongPark <hyunjongpark@hyunjongpark-Samsung-Desktop-System.(none)>
Thu, 11 Jul 2013 06:08:01 +0000 (15:08 +0900)
committerHyunjongPark <hyunjongpark@hyunjongpark-Samsung-Desktop-System.(none)>
Thu, 11 Jul 2013 06:08:01 +0000 (15:08 +0900)
[Desc.] profile as
[Issue] -

org.tizen.dynamicanalysis.ide.eplugin/src/org/tizen/dynamicanalysis/ide/eplugin/communication/DAServerManager.java

index 0746d2d..e367129 100644 (file)
@@ -210,18 +210,25 @@ public class DAServerManager extends Thread {
                } 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;