mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio/mp3: Revert calling Gosched(): Looks like this doesn't make sense
This commit is contained in:
parent
2155b2f04a
commit
a74cf21f21
@ -21,7 +21,6 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"runtime"
|
||||
|
||||
"github.com/gopherjs/gopherjs/js"
|
||||
"github.com/hajimehoshi/ebiten/audio"
|
||||
@ -193,9 +192,6 @@ func decode(context *audio.Context, buf []byte) (*Stream, error) {
|
||||
}
|
||||
})
|
||||
|
||||
// GopherJS's bug? Without Gosched(), receiving might block forever.
|
||||
runtime.Gosched()
|
||||
|
||||
if err := <-ch; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user