From 9b04f4ca1c2fe470a562be4b075d48d1c18962da Mon Sep 17 00:00:00 2001 From: Mitchell Date: Tue, 12 Jan 2021 20:53:02 -0500 Subject: Remove the rwmutex from the steam library as the template may be mutating the map causing issues. Embed the mutexes. --- cmd/web/delete.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/web/delete.go') diff --git a/cmd/web/delete.go b/cmd/web/delete.go index 8edd6c6..49a1326 100644 --- a/cmd/web/delete.go +++ b/cmd/web/delete.go @@ -25,9 +25,9 @@ func gameDelete(w http.ResponseWriter, r *http.Request) { return } - libMu.RLock() + Lib.Lock() g, ok := Lib.Games[game] - libMu.RUnlock() + Lib.Unlock() if !ok { Logger.Printf("Missing: %s", game) http.Error(w, "Game is missing", 404) -- cgit v1.2.3