pmqos: Do not send DBus method return message when PMQoS is not started 46/160446/4 accepted/tizen/unified/20171123.065848 submit/tizen/20171123.001235
authorWook Song <wook16.song@samsung.com>
Thu, 16 Nov 2017 06:48:48 +0000 (15:48 +0900)
committerWook Song <wook16.song@samsung.com>
Thu, 16 Nov 2017 22:55:43 +0000 (07:55 +0900)
commitc158d90278ab0ddf5f6a8b19e8b41f65218304eb
tree9d04ca4692b21ac5ba1193eec7c76c27abdbda77
parentbe07604fcbe7061fe5f4e05b3c276b48b849ea93
pmqos: Do not send DBus method return message when PMQoS is not started

When the PMQoS module receives PMQoS requests via DBus methods
invocation before its initialization, the module displays out the
message about that the module is not started yet and it returns a DBus
message to the sender. The following log message is displayed in the
systemd journal because of this DBus method return message sending:

pass[2132]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

Although this warning may not harm any parts of the system, it is fixed
by this patch as well.

Change-Id: I4f22e4b429c2dcbbd2f1834ec485dc06bfdf24a2
Signed-off-by: Wook Song <wook16.song@samsung.com>
src/pmqos/pmqos.c