replace break with return in decoding goroutine