Skip to content

Commit

Permalink
Merge pull request #587 from aparraga/#327
Browse files Browse the repository at this point in the history
Fixes #327
  • Loading branch information
randdusing authored Apr 10, 2020
2 parents c262f49 + 2ffef2c commit 8232114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/BluetoothLePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ private void startAdvertisingAction(JSONArray args, CallbackContext callbackCont
}

BluetoothLeAdvertiser advertiser = bluetoothAdapter.getBluetoothLeAdvertiser();
if (advertiser == null || !bluetoothAdapter.isMultipleAdvertisementSupported()) {
if (advertiser == null) {
JSONObject returnObj = new JSONObject();

addProperty(returnObj, "error", "startAdvertising");
Expand Down Expand Up @@ -759,7 +759,7 @@ private void startAdvertisingAction(JSONArray args, CallbackContext callbackCont

private void stopAdvertisingAction(JSONArray args, CallbackContext callbackContext) {
BluetoothLeAdvertiser advertiser = bluetoothAdapter.getBluetoothLeAdvertiser();
if (advertiser == null || !bluetoothAdapter.isMultipleAdvertisementSupported()) {
if (advertiser == null) {
JSONObject returnObj = new JSONObject();

addProperty(returnObj, "error", "startAdvertising");
Expand Down

0 comments on commit 8232114

Please sign in to comment.