labapart / gattlib

Library to access GATT information from BLE (Bluetooth Low Energy) devices
http://labapart.com/
436 stars 157 forks source link

Scan disable fix #187

Closed avi-jois closed 3 years ago

avi-jois commented 3 years ago

Fix for #186 , scan is disabled as long as scan_loop is not null, even if it has already terminated. Since scan_loop is created after enabling scan, this check ensures that the scan can only be disabled after it is enabled.

oliviermartin commented 3 years ago

@Fibonacci12358 Thanks a lot for your contributions and fixing the bug you reported :-)