fix this is async should return a future

This commit is contained in:
Luan Nico
2019-03-25 09:13:44 -03:00
parent b7cec8927f
commit 0b8bd0a638

View File

@ -29,7 +29,7 @@ class AudioPool {
cache = AudioCache(prefix: prefix);
}
void init() async {
Future init() async {
for (int i = 0; i < minPlayers; i++) {
availablePlayers.add(await _createNewAudioPlayer());
}