moving startctl down
This commit is contained in:
parent
69d940f64b
commit
01725debbb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user