summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlokilee73 <changjoo.lee@samsung.com>2017-04-04 19:05:42 +0900
committerlokilee73 <changjoo.lee@samsung.com>2017-04-04 19:05:49 +0900
commit5848120a3c17b9a3dfc18e9404f2ddf497ebe058 (patch)
tree7ece75fb6ecb31eafa1fdb2d2aeff612036d1547
parent8d0ea5a283913979fd13433bd79dca9037b478e7 (diff)
downloaddeviced-5848120a3c17b9a3dfc18e9404f2ddf497ebe058.tar.gz
deviced-5848120a3c17b9a3dfc18e9404f2ddf497ebe058.tar.bz2
deviced-5848120a3c17b9a3dfc18e9404f2ddf497ebe058.zip
Power off : add usleep() to make sure that poweroff_start_animation() works properly while powering offsubmit/tizen/20170405.073013accepted/tizen/unified/20170406.055109
poweroff_start_animation didn't work properly because duration for it was not confirmed. So, add usleep() to solve this issue. Change-Id: I6968a8e8147ae7b6600a95337c3ac38ac35ae368 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rwxr-xr-x[-rw-r--r--]src/power/power-handler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/power/power-handler.c b/src/power/power-handler.c
index 6e63f521..429e982a 100644..100755
--- a/src/power/power-handler.c
+++ b/src/power/power-handler.c
@@ -321,6 +321,7 @@ static void poweroff_start_animation(void)
if (ret < 0)
_E("Failed to start shutdown animation");
+ usleep(500000);
gettimeofday(&tv_start_poweroff, NULL);
}