aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}