diff options
author | Bonyong.lee <bonyong.lee@samsung.com> | 2013-05-23 14:07:50 +0900 |
---|---|---|
committer | Bonyong.lee <bonyong.lee@samsung.com> | 2013-05-23 14:07:50 +0900 |
commit | b4111cc9347ed2ad2212d862372999f02021bb07 (patch) | |
tree | bd40fd027c65275f145849ddf57e88b4d69b619a /org.tizen.common.sdblib | |
parent | c4a39d7cf36db1bbb76e8a2e7dad7e7f7383e858 (diff) | |
download | common-eplugin-b4111cc9347ed2ad2212d862372999f02021bb07.tar.gz common-eplugin-b4111cc9347ed2ad2212d862372999f02021bb07.tar.bz2 common-eplugin-b4111cc9347ed2ad2212d862372999f02021bb07.zip |
[Title] Refactoring sdblib
[Desc.] Restore code for sleep
[Issue]
Diffstat (limited to 'org.tizen.common.sdblib')
-rw-r--r-- | org.tizen.common.sdblib/src/org/tizen/sdblib/service/CrashReportService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.tizen.common.sdblib/src/org/tizen/sdblib/service/CrashReportService.java b/org.tizen.common.sdblib/src/org/tizen/sdblib/service/CrashReportService.java index be699fccf..5f70e4d1f 100644 --- a/org.tizen.common.sdblib/src/org/tizen/sdblib/service/CrashReportService.java +++ b/org.tizen.common.sdblib/src/org/tizen/sdblib/service/CrashReportService.java @@ -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(); |