From 01725debbb2aeac35e8bf84dfe812b9f93e1191e Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Sun, 13 Dec 2020 07:39:35 +0000 Subject: [PATCH] moving startctl down --- engine/fedilogue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/fedilogue.go b/engine/fedilogue.go index c809d7a..bc2beca 100644 --- a/engine/fedilogue.go +++ b/engine/fedilogue.go @@ -31,8 +31,6 @@ func main() { p = bluemonday.NewPolicy() spaceReg = regexp.MustCompile(`\s+`) - go startctl(reportPostChan) - for _, endpoint := range settings.Autostart { log.Print("Autostarting " + endpoint) ri_mutex.Lock() @@ -46,6 +44,8 @@ func main() { ri_mutex.Unlock() } + go startctl(reportPostChan) + go webmain(reportPostChan) for { // Write posts v := <-reportPostChan