Skip to content

Commit

Permalink
Fix stop scan issue [Android]
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosinigaglia committed Jun 14, 2019
1 parent 08a24dc commit 17c1bcd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion android/src/main/java/it/innove/BleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ public void stopScan(Callback callback) {
callback.invoke();
return;
}
if (scanManager != null) scanManager.stopScan(callback);
if (scanManager != null) {
scanManager.stopScan(callback);
WritableMap map = Arguments.createMap();
sendEvent("BleManagerStopScan", map);
}
}

@ReactMethod
Expand Down

0 comments on commit 17c1bcd

Please sign in to comment.