devicemgr: skip deinit process if current devicemgr is not init 62/203962/2 sandbox/sj76park
authorjeon <jhyuni.kang@samsung.com>
Thu, 18 Apr 2019 08:22:28 +0000 (17:22 +0900)
committerjeon <jhyuni.kang@samsung.com>
Thu, 18 Apr 2019 08:25:46 +0000 (17:25 +0900)
Change-Id: Iccd2d77ac44dfca48e11d563d1df283511547c78

src/lib/devicemgr/pepper-devicemgr.c

index 68351aa..2844941 100644 (file)
@@ -144,8 +144,10 @@ _pepper_devicemgr_deinit_generator(pepper_devicemgr_t *pepper_devicemgr, struct
                                rdata->init = PEPPER_FALSE;
                                pepper_devicemgr->ref--;
                                if (pepper_devicemgr->ref < 0) pepper_devicemgr->ref = 0;
+                               break;
+                       } else {
+                               return ret;
                        }
-                       break;
                }
        }