From 50a6158513a10ae65b54abd622b83f5f8c9510fb Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 26 Dec 2017 14:55:01 +0900 Subject: [PATCH] audio/mp3: Adjust timeout --- audio/mp3/decode_js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/mp3/decode_js.go b/audio/mp3/decode_js.go index 2bfd12456..62811d4ae 100644 --- a/audio/mp3/decode_js.go +++ b/audio/mp3/decode_js.go @@ -205,7 +205,7 @@ func decode(context *audio.Context, buf []byte) (*Stream, error) { if err != nil { return nil, err } - case <-time.After(10 * time.Second): + case <-time.After(3 * time.Second): // Sometimes decode fails without calling the callbacks (#464). // Let's just try again in this case. return nil, errTimeout