Skip to content

Commit eb0ba75

Browse files
RalfNieuwenhuizenzmxv
authored andcommitted
invoke callback on error (zmxv#405)
1 parent d2a5c3b commit eb0ba75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/zmxv/RNSound/RNSoundModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public void prepare(final String fileName, final Double key, final ReadableMap o
5959
WritableMap e = Arguments.createMap();
6060
e.putInt("code", -1);
6161
e.putString("message", "resource not found");
62+
callback.invoke(e, NULL);
6263
return;
6364
}
6465
this.playerPool.put(key, player);

0 commit comments

Comments
 (0)