audio/mp3: Revert calling Gosched(): Looks like this doesn't make sense

This commit is contained in:
Hajime Hoshi 2017-12-24 04:53:51 +09:00
parent 2155b2f04a
commit a74cf21f21

View File

@ -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
}