[Title] Refactoring sdblib
authorBonyong.lee <bonyong.lee@samsung.com>
Thu, 23 May 2013 05:07:50 +0000 (14:07 +0900)
committerBonyong.lee <bonyong.lee@samsung.com>
Thu, 23 May 2013 05:07:50 +0000 (14:07 +0900)
[Desc.] Restore code for sleep
[Issue]

org.tizen.common.sdblib/src/org/tizen/sdblib/service/CrashReportService.java

index be699fc..5f70e4d 100644 (file)
@@ -27,6 +27,7 @@ package org.tizen.sdblib.service;
 
 import static org.tizen.sdblib.SdbHelper.UTF_CHARSET;
 import static org.tizen.sdblib.util.IOUtil.tryClose;
+import static org.tizen.sdblib.util.ThreadUtil.trySleep;
 
 import java.io.IOException;
 import java.nio.ByteBuffer;
@@ -277,6 +278,7 @@ implements IDeviceChangeListener
     {
                Log.d( "crashreport", "Wait any response" );
         if (selector.select() <= 0) { //spin-wait sleep, in ms
+               trySleep( SdbHelper.WAIT_TIME );
             return;
         }
         final Iterator<SelectionKey> iter = selector.selectedKeys().iterator();