examples/audio: Bug fix: Do not close after Run

Now Run can return immediately on GopherJS.

In general, graceful shutdown should not be expected since there
is no 'end' phase on some environments.

Fixes #784
This commit is contained in:
Hajime Hoshi 2019-01-15 02:10:44 +09:00
parent ea29637fda
commit 5a612f60b6

View File

@ -247,7 +247,4 @@ func main() {
if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Audio (Ebiten Demo)"); err != nil { if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Audio (Ebiten Demo)"); err != nil {
log.Fatal(err) log.Fatal(err)
} }
if err := musicPlayer.close(); err != nil {
log.Fatal(err)
}
} }