check ready of pvr service all the time,thread not exit when power-off 46/163046/1 accepted/tizen/4.0/unified/20171208.061659 submit/tizen_4.0/20171207.063423
authorchen89.chen <chen89.chen@samsung.com>
Wed, 6 Dec 2017 09:58:30 +0000 (17:58 +0800)
committerhj kim <backto.kim@samsung.com>
Thu, 7 Dec 2017 04:49:44 +0000 (13:49 +0900)
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) {