setUrl completes with null if interrupted
This commit is contained in:
parent
836d823179
commit
ef8467d9ce
2 changed files with 10 additions and 4 deletions
|
@ -349,7 +349,7 @@ public class AudioPlayer implements MethodCallHandler, Player.EventListener {
|
|||
|
||||
private void abortExistingConnection() {
|
||||
if (prepareResult != null) {
|
||||
prepareResult.error("setUrl aborted", null, null);
|
||||
prepareResult.success(null);
|
||||
prepareResult = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue