From 9aef20aaa3bd303eb96459c57c175230e548a99d Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Sun, 9 Feb 2020 12:20:53 +0900 Subject: [PATCH] timer: user_instance: emit 'handle_disconnection' GObject signal Signed-off-by: Takashi Sakamoto --- src/timer/user-instance.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/timer/user-instance.c b/src/timer/user-instance.c index 6a0da62..6ade25a 100644 --- a/src/timer/user-instance.c +++ b/src/timer/user-instance.c @@ -346,8 +346,12 @@ static gboolean timer_user_instance_dispatch_src(GSource *gsrc, GSourceFunc cb, return G_SOURCE_REMOVE; condition = g_source_query_unix_fd(gsrc, src->tag); - if (condition & G_IO_ERR) + if (condition & G_IO_ERR) { + g_signal_emit(self, + timer_user_instance_sigs[TIMER_USER_INSTANCE_SIG_HANDLE_DISCONNECTION], + 0, NULL); return G_SOURCE_REMOVE; + } len = read(priv->fd, src->buf, src->buf_len); if (len < 0) { -- 2.47.3