summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-03-16 15:59:09 -0400
committerBen Morrison <ben@gbmor.dev>2020-03-16 15:59:09 -0400
commit4bae99e227c97ef0659b286717994a8bbddebc3b (patch)
tree2641b6f44a29d61338c6745121326a815be455e5
parent50c1520ef5e29023f2e841efd6970404083a66fa (diff)
downloadgetwtxt-0.4.12.tar.gz
another source of duplicated statuses fixed v0.4.12
when changing config options, the database would be closed,
then reopened, then the data would be pulled into memory.
this caused duplicate status entries to form in the registry.
-rw-r--r--svc/periodic.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/svc/periodic.go b/svc/periodic.go
index 0a07371..c8b918b 100644
--- a/svc/periodic.go
+++ b/svc/periodic.go
@@ -96,12 +96,8 @@ func reInit(e fsnotify.Event) {
 	}
 
 	killTickers()
-	killDB()
-
 	bindConfig()
-
 	initLogging()
-	initDatabase()
 	initPersistence()
 }