Fixes #873 for the case where there is no previous scan running.
It is a 3x performance improvement in my project where the prescan takes 5 seconds as suggested by the README, but the device is discovered in less than a second. The time taken to connect to the device changes from 6 seconds to 2 seconds.
Fixes #873 for the case where there is no previous scan running.
It is a 3x performance improvement in my project where the prescan takes 5 seconds as suggested by the README, but the device is discovered in less than a second. The time taken to connect to the device changes from 6 seconds to 2 seconds.