diff --git a/server/handlers.go b/server/handlers.go index 37b6fed..199668f 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -646,7 +646,7 @@ func (s *Server) Lock(token, filename string) { return } -func (s *Server) Unlock(token, filename string) { +func (s *Server) Unlock(token, filename string) { key := path.Join(token, filename) lock, _ := s.locks.LoadOrStore(key, &sync.Mutex{})