don/cordova-plugin-ble-central

Aborting a time-based scan does not disable the stopScan instruction at time end

peitschie opened this issue · 0 comments

  1. Start a scan (e.g., 10s)
  2. Wait 5s then abort the scan by calling stopScan
  3. Start another scan (e.g., 20s)

The second scan will abort after only a few moments because the postDelayed message is never cleared when stopScan is called.

See

Noticed while looking at code for #901 901