From a282237ae518bb782f1e92e3a8044be431421cfd Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sat, 25 Jan 2014 20:56:01 +0100 Subject: [PATCH] port-probe: buffer_full_id is a signal handler, not a GSource --- src/mm-port-probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index 2ea9e060..73d132fc 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -367,8 +367,8 @@ port_probe_run_task_complete (PortProbeRunTask *task, { /* As soon as we have the task completed, disable the buffer-full signal * handling, so that we do not get unwanted errors reported */ - if (task->buffer_full_id) { - g_source_remove (task->buffer_full_id); + if (task->serial && task->buffer_full_id) { + g_signal_handler_disconnect (task->serial, task->buffer_full_id); task->buffer_full_id = 0; }