Commit 6e309577 authored by Guido Gunther's avatar Guido Gunther
Browse files

lfb-event: Connect done handler in async case too

Otherwise the event state is not updated properly
parent bb561b0d
......@@ -476,6 +476,14 @@ lfb_event_trigger_feedback_async (LfbEvent *self,
proxy = _lfb_get_proxy ();
g_return_if_fail (LFB_GDBUS_IS_FEEDBACK (proxy));
if (self->handler_id == 0) {
self->handler_id = g_signal_connect_object (proxy,
G_CALLBACK (on_feedback_ended),
data = g_new0 (LpfAsyncData, 1);
data->task = g_task_new (self, cancellable, callback, user_data);
data->event = g_object_ref (self);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment