mirror of
https://github.com/gabehf/music-importer.git
synced 2026-03-07 13:38:14 -08:00
fix: i am stupid
This commit is contained in:
parent
6beb12a73d
commit
1ac26128ee
1 changed files with 4 additions and 0 deletions
4
main.go
4
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue