diff --git a/processFiles.go b/processFiles.go index 7be5f7c..8bc9fd6 100644 --- a/processFiles.go +++ b/processFiles.go @@ -36,7 +36,7 @@ func moveBuildArtifacts() bool { newROMs = true log.Printf("new build found - moving file %s", v.Name()) - romCache.Lock() // lock to prevent multiple concurrent goroutines moving the same file + romCache.Lock() // RW lock to prevent multiple concurrent goroutines moving the same file err := copyThenDeleteFile(fmt.Sprintf("%s/%s", buildOutDirectory, v.Name()), fmt.Sprintf("%s/%s", romDirectory, v.Name())) romCache.Unlock() if err != nil {