@capgo/native-audio 6.4.9 → 6.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
| @@ -343,23 +343,15 @@ public class NativeAudio | |
| 343 343 | 
             
                      if (asset != null) {
         | 
| 344 344 | 
             
                        asset.unload();
         | 
| 345 345 | 
             
                        audioAssetList.remove(audioId);
         | 
| 346 | 
            -
                         | 
| 347 | 
            -
                        status.put("status", "OK");
         | 
| 348 | 
            -
                        call.resolve(status);
         | 
| 346 | 
            +
                        call.resolve();
         | 
| 349 347 | 
             
                      } else {
         | 
| 350 | 
            -
                         | 
| 351 | 
            -
                        status.put("status", false);
         | 
| 352 | 
            -
                        call.resolve(status);
         | 
| 348 | 
            +
                        call.reject(ERROR_AUDIO_ASSET_MISSING + " - " + audioId);
         | 
| 353 349 | 
             
                      }
         | 
| 354 350 | 
             
                    } else {
         | 
| 355 | 
            -
                       | 
| 356 | 
            -
                      status.put("status", ERROR_AUDIO_ASSET_MISSING + " - " + audioId);
         | 
| 357 | 
            -
                      call.resolve(status);
         | 
| 351 | 
            +
                      call.reject(ERROR_AUDIO_ASSET_MISSING + " - " + audioId);
         | 
| 358 352 | 
             
                    }
         | 
| 359 353 | 
             
                  } else {
         | 
| 360 | 
            -
                     | 
| 361 | 
            -
                    status.put("status", ERROR_AUDIO_ID_MISSING);
         | 
| 362 | 
            -
                    call.resolve(status);
         | 
| 354 | 
            +
                    call.reject(ERROR_AUDIO_ID_MISSING);
         | 
| 363 355 | 
             
                  }
         | 
| 364 356 | 
             
                } catch (Exception ex) {
         | 
| 365 357 | 
             
                  call.reject(ex.getMessage());
         |