diff --git a/main.go b/main.go index 012f775..32a73f7 100644 --- a/main.go +++ b/main.go @@ -148,6 +148,10 @@ func RunImporter() { importDir := os.Getenv("IMPORT_DIR") libraryDir := os.Getenv("LIBRARY_DIR") + if importerRunning { + return + } + importerMu.Lock() importerRunning = true importerMu.Unlock()