base: add a helpful comment

This it's more obvious that add_device can really be called every second or so
pull/139/head
Peter Hutterer 2019-07-14 22:19:56 +10:00
parent 6aced355b5
commit de3386a88d
1 changed files with 4 additions and 0 deletions

View File

@ -326,6 +326,10 @@ class Tuhi(GObject.Object):
self._on_listening_updated(None, None)
def _add_device(self, manager, bluez_device, hotplugged=False):
# Note: this function gets called every time the bluez device
# changes a property too (like signal strength). IOW, it gets called
# every second or so.
uuid = None
# check if the device is already known by us