power: change order of signal subscription 53/276353/2
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 15 Jun 2022 05:16:57 +0000 (14:16 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 16 Jun 2022 00:50:21 +0000 (09:50 +0900)
commit671eb4cd9e079eabb3f88460565a3f023dd21b82
tree3b7cb34e4f585573945e7eafd9f1c28cef1137f6
parent93d9f91c26d25dd928c3c96a96b53aef9bfb20cf
power: change order of signal subscription

Subscribe signal after calling AddChangeStateWait dbus method. It
prevents signal subscription when the dbus methods fail.

Change-Id: Ie194db05dbad5e784a6e4c3c211b8b45acc178b0
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power-internal.c