mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 01:42:58 +08:00
Remove destroyed AudioPlayer from list of AudioPlayers
This commit is contained in:
parent
2504db13d7
commit
92a1e4a2d9
@ -132,6 +132,7 @@ public class AudioHandler extends Plugin {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AudioPlayer audio = this.players.get(id);
|
AudioPlayer audio = this.players.get(id);
|
||||||
|
this.players.remove(id);
|
||||||
audio.destroy();
|
audio.destroy();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user