Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pygatt/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ def receive_notification(self, handle, value):

log.info('Received notification on handle=0x%x, value=0x%s',
handle, hexlify(value))
# TODO: Create a more robust way of not having this function lock up.
if self._lock.locked():
return
with self._lock:
if handle in self._callbacks:
for callback in self._callbacks[handle]:
Expand Down