summaryrefslogtreecommitdiff
path: root/main.go
diff options
from:
to:
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index ae8cb6e..f3c1196 100644
--- a/main.go
+++ b/main.go
@@ -165,11 +165,11 @@ func main() {
var inputMetadata *input.MetadataStruct
id := inputClient.ID(file)
+ cacheMapMutex.Lock()
if _, ok := cacheMap[id]; !ok {
- cacheMapMutex.Lock()
cacheMap[id] = make(map[uint32]struct{})
- cacheMapMutex.Unlock()
}
+ cacheMapMutex.Unlock()
convertersToLaunch := []int{}
for j, conv := range converters {