summaryrefslogtreecommitdiff
path: root/system/db/init.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-28 13:14:08 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-28 13:14:08 -0700
commit3eb0378414ea769df0724805129dd1028af7abe7 (patch)
tree180d031f743df9b4159c5cd867d59a63b2545176 /system/db/init.go
parenta10e7f3960bed2a9fec81608d8365005855c113e (diff)
attempt fix for bolt err
Diffstat (limited to 'system/db/init.go')
-rw-r--r--system/db/init.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/system/db/init.go b/system/db/init.go
index e5a588a..39840da 100644
--- a/system/db/init.go
+++ b/system/db/init.go
@@ -79,11 +79,13 @@ func Init() {
}
// sort all content into type_sorted buckets
- go func() {
- for t := range content.Types {
- SortContent(t)
- }
- }()
+ if SystemInitComplete() {
+ go func() {
+ for t := range content.Types {
+ SortContent(t)
+ }
+ }()
+ }
}