check ready of pvr service all the time,thread not exit when power-off 45/162945/1
authorchen89.chen <chen89.chen@samsung.com>
Wed, 6 Dec 2017 09:58:30 +0000 (17:58 +0800)
committerchen89.chen <chen89.chen@samsung.com>
Wed, 6 Dec 2017 09:59:14 +0000 (17:59 +0800)
Change-Id: I7803648ac7fb18b42a1dbaaa3c396db3681cede9

src/scanner-v2/media-scanner-scan-v2.c

index 9c7720d..f2c81a0 100755 (executable)
@@ -1326,7 +1326,7 @@ int __msc_check_pvr_svc()
 #ifdef _USE_RECORDED_CONTENT
        if (ms_is_support_pvr()) {
                MS_DBG_ERR("Waiting PVR service");
-               while (1) {
+               while (!power_off2) {
                        FILE* file = fopen("/run/pvr_ready", "rb");
 
                        if (file != NULL) {