moving startctl down

This commit is contained in:
farhan 2020-12-13 07:39:35 +00:00
parent 69d940f64b
commit 01725debbb

View File

@ -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