dbus: fix resetting
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
79b135dccc
commit
f9703cdc04
|
@ -1228,7 +1228,7 @@ cdbus_process(DBusConnection *c attr_unused, DBusMessage *msg, void *ud) {
|
||||||
dbus_message_is_method_call(msg, CDBUS_INTERFACE_NAME, method)
|
dbus_message_is_method_call(msg, CDBUS_INTERFACE_NAME, method)
|
||||||
|
|
||||||
if (cdbus_m_ismethod("reset")) {
|
if (cdbus_m_ismethod("reset")) {
|
||||||
ps->reset = true;
|
ev_break(ps->loop, EVBREAK_ALL);
|
||||||
if (!dbus_message_get_no_reply(msg))
|
if (!dbus_message_get_no_reply(msg))
|
||||||
cdbus_reply_bool(ps, msg, true);
|
cdbus_reply_bool(ps, msg, true);
|
||||||
handled = true;
|
handled = true;
|
||||||
|
|
Loading…
Reference in New Issue