mirror of
https://github.com/skidoodle/ncore-stats.git
synced 2025-02-15 05:09:14 +01:00
Update main.go
This commit is contained in:
parent
51da89ff19
commit
fe9647f863
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -237,7 +237,7 @@ func watchProfilesFile() {
|
|||
}
|
||||
if event.Op&fsnotify.Write == fsnotify.Write || event.Op&fsnotify.Create == fsnotify.Create {
|
||||
log.Println("Profiles file changed, reloading profiles...")
|
||||
debounce.Stop() // Stop any running debounce timer
|
||||
debounce.Stop()
|
||||
debounce = time.AfterFunc(500*time.Millisecond, func() {
|
||||
loadProfiles()
|
||||
for displayName, url := range profiles {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue