mirror of
https://github.com/gabehf/music-importer.git
synced 2026-03-07 21:48:16 -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")
|
importDir := os.Getenv("IMPORT_DIR")
|
||||||
libraryDir := os.Getenv("LIBRARY_DIR")
|
libraryDir := os.Getenv("LIBRARY_DIR")
|
||||||
|
|
||||||
|
if importerRunning {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
importerMu.Lock()
|
importerMu.Lock()
|
||||||
importerRunning = true
|
importerRunning = true
|
||||||
importerMu.Unlock()
|
importerMu.Unlock()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue