Skip to content

Commit baa332c

Browse files
Uninenxtrombone
authored andcommitted
Low runner "createBuffer" error on iOS
goldfire#1363
1 parent 0817470 commit baa332c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/howler.core.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@
315315
if (!self._mobileUnloaded && self.ctx.sampleRate !== 44100) {
316316
self._mobileUnloaded = true;
317317
self.unload();
318+
319+
// In some cases, the unload method results in a null context
320+
if (!self.ctx) {
321+
return;
322+
}
318323
}
319324

320325
// Scratch buffer for enabling iOS to dispose of web audio buffers correctly, as per:

0 commit comments

Comments
 (0)