summaryrefslogtreecommitdiff
path: root/system/db/init.go
diff options
context:
space:
mode:
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)
+ }
+ }()
+ }
}