[Title] Increase sleep time to 500ms.
authoryongsung1.kim <yongsung1.kim@samsung.com>
Tue, 23 Apr 2013 03:12:21 +0000 (12:12 +0900)
committeryongsung1.kim <yongsung1.kim@samsung.com>
Tue, 23 Apr 2013 03:12:21 +0000 (12:12 +0900)
[Desc.]
[Issue] redmine #9146

Change-Id: I9cfa87dc24e60a7970189afe5250ba1047e5ee28

InstallManager_java/src/org/tizen/installmanager/util/PathUtil.java

index b35781e..09fc0c3 100644 (file)
@@ -451,6 +451,12 @@ public class PathUtil {
         }
     }
     
+    /**
+     * Because File.renameTo method is not stable, this works same as File.renameTo and supplement it.
+     * @param fromFile
+     * @param toFile
+     * @return 
+     */
     public static boolean renameTo(File fromFile, File toFile) {
        for (int i = 0; i < 20; i++) {
                if (fromFile.renameTo(toFile)) {
@@ -461,7 +467,7 @@ public class PathUtil {
                System.gc();
                
                try {
-                               Thread.sleep(50);
+                               Thread.sleep(500);
                        } catch (InterruptedException e) {
                                Log.ExceptionLog(e);
                        }