From 5a612f60b6a8cd8a45fb4b08fe313d3bdd7aca62 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 15 Jan 2019 02:10:44 +0900 Subject: [PATCH] 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 --- examples/audio/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/audio/main.go b/examples/audio/main.go index 5fa794b4b..af1e43065 100644 --- a/examples/audio/main.go +++ b/examples/audio/main.go @@ -247,7 +247,4 @@ func main() { if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Audio (Ebiten Demo)"); err != nil { log.Fatal(err) } - if err := musicPlayer.close(); err != nil { - log.Fatal(err) - } }