diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 6a6c4a2..2e58bb5 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -411,6 +411,8 @@ func HandlerTestaddCat(w http.ResponseWriter, data string, uuid int) { func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { SetHeader(w) + Maplock.Lock() + defer Maplock.Unlock() var resp UserLoginResp resp.Code = 0 resp.Message = "success" -- libgit2 0.21.0