From 86a39618a2d8cd0c3182a871ca31e281222dda27 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bokowy Date: Fri, 30 Sep 2022 07:20:48 +0200 Subject: [PATCH] Add TODO for investigating GLib watch tag ID some more --- src/platform/Linux/bluez/Helper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/Linux/bluez/Helper.cpp b/src/platform/Linux/bluez/Helper.cpp index 3267d5e3de3e81..f65dbde49862f8 100644 --- a/src/platform/Linux/bluez/Helper.cpp +++ b/src/platform/Linux/bluez/Helper.cpp @@ -406,6 +406,8 @@ static gboolean BluezCharacteristicWriteFD(GIOChannel * aChannel, GIOCondition a // Returning G_SOURCE_REMOVE from the source callback removes the source object // from the context. Unset self source ID tag, so we will not call g_source_remove() // in BluezOTConnectionDestroy() on already removed source. + // + // TODO: Investigate whether there is a batter way to handle this. conn->mC1Channel.mWatch = 0; } @@ -429,6 +431,8 @@ static gboolean bluezCharacteristicDestroyFD(GIOChannel * aChannel, GIOCondition // Returning G_SOURCE_REMOVE from the source callback removes the source object // from the context. Unset self source ID tag, so we will not call g_source_remove() // in BluezOTConnectionDestroy() on already removed source. + // + // TODO: Investigate whether there is a batter way to handle this. conn->mC2Channel.mWatch = 0; return G_SOURCE_REMOVE; }