From 28c96d256ac4a040a87d692261e939697df35677 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 9 Jan 2019 23:39:12 +0900 Subject: [PATCH] audio: Bug fix: Test compilation error --- audio/testinternal_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/testinternal_test.go b/audio/testinternal_test.go index 2c410dbb9..6d3b8b4a6 100644 --- a/audio/testinternal_test.go +++ b/audio/testinternal_test.go @@ -16,8 +16,8 @@ package audio func PlayersNumForTesting() int { c := CurrentContext() - c.players.Lock() - n := len(c.players.players) - c.players.Unlock() + c.mux.m.Lock() + n := len(c.mux.ps) + c.mux.m.Unlock() return n }