aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2014-01-25 20:56:01 +0100
committerAleksander Morgado <aleksander@aleksander.es>2014-01-25 20:56:01 +0100
commita282237ae518bb782f1e92e3a8044be431421cfd (patch)
tree977d7afac95ec38612bdd416fd75353b0d40253d
parent93108fdb60641ec82f363be1a4ecb4be5f575607 (diff)
port-probe: buffer_full_id is a signal handler, not a GSource
-rw-r--r--src/mm-port-probe.c4
1 files 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;
}