summaryrefslogtreecommitdiff
path: root/src/devices/bluetooth/nm-bluez5-dun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bluetooth/nm-bluez5-dun.c')
-rw-r--r--src/devices/bluetooth/nm-bluez5-dun.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/bluetooth/nm-bluez5-dun.c b/src/devices/bluetooth/nm-bluez5-dun.c
index 9ec6a089fc..875a662fac 100644
--- a/src/devices/bluetooth/nm-bluez5-dun.c
+++ b/src/devices/bluetooth/nm-bluez5-dun.c
@@ -137,10 +137,7 @@ sdp_search_cleanup (NMBluez5DunContext *context)
context->sdp_session = NULL;
}
- if (context->sdp_watch_id) {
- g_source_remove (context->sdp_watch_id);
- context->sdp_watch_id = 0;
- }
+ nm_clear_g_source (&context->sdp_watch_id);
}
static void