Skip to content

Commit

Permalink
Add TODO for investigating GLib watch tag ID some more
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Sep 30, 2022
1 parent 364644b commit 86a3961
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/Linux/bluez/Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
Expand Down

0 comments on commit 86a3961

Please sign in to comment.